import pandas as pd
import networkx as nx
from networkx.algorithms import bipartite
import matplotlib.pyplot as plt
# Load data and clean data
page_info=pd.read_csv("1000-page-info.csv")
df=pd.read_csv("user_page_week_likes_201608_201610_add_quality_100000_sample_balanced.csv")
df=df.sort_values(by=['user_id'])
df
| user_id | page_id | week_start_date | reaction_time | is_politifact_user | fake_posts_count | |
|---|---|---|---|---|---|---|
| 5015421 | 502548149224 | 7938522410 | 2016-10-30 | 0 | False | 0.0 |
| 5015501 | 502548149224 | 113201214447 | 2016-09-25 | 0 | False | 0.0 |
| 2853814 | 502548149224 | 18468761129 | 2016-08-07 | 1 | False | 0.0 |
| 5015386 | 502548149224 | 5550296508 | 2016-08-28 | 0 | False | 0.0 |
| 5015500 | 502548149224 | 113201214447 | 2016-09-18 | 0 | False | 0.0 |
| ... | ... | ... | ... | ... | ... | ... |
| 25543482 | 10212036602018169 | 10643211755 | 2016-09-04 | 0 | False | 0.0 |
| 25543481 | 10212036602018169 | 10643211755 | 2016-08-28 | 0 | False | 0.0 |
| 25543480 | 10212036602018169 | 10643211755 | 2016-08-21 | 0 | False | 0.0 |
| 25543493 | 10212036602018169 | 24085780715 | 2016-08-28 | 0 | False | 0.0 |
| 25543573 | 10212036602018169 | 545775132233909 | 2016-10-30 | 0 | False | 0.0 |
25543574 rows × 6 columns
df = df.drop(df[df['reaction_time']==0].index)
df = df.drop("is_politifact_user", axis='columns')
df = df.drop("fake_posts_count", axis='columns')
df_20160918 = df.drop(df[df['week_start_date']!='2016-09-18'].index)
df_20160918 = df_20160918.drop("week_start_date", axis='columns')
df_20160918.reset_index(drop=True, inplace=True)
df_20160918
| user_id | page_id | reaction_time | |
|---|---|---|---|
| 0 | 502548149224 | 10643211755 | 1 |
| 1 | 504535781680 | 19440638720 | 1 |
| 2 | 504535781680 | 199098633470668 | 6 |
| 3 | 511651751124 | 10513336322 | 1 |
| 4 | 511972972838 | 6491828674 | 1 |
| ... | ... | ... | ... |
| 347591 | 10211474845295627 | 341163402640457 | 1 |
| 347592 | 10211474845295627 | 138691142964027 | 1 |
| 347593 | 10211474845295627 | 86680728811 | 1 |
| 347594 | 10211474845295627 | 997108126967413 | 2 |
| 347595 | 10212036602018169 | 354522044588660 | 2 |
347596 rows × 3 columns
df_20160918_add_page_info = df_20160918.merge(right=page_info, right_on='page_id', left_on='page_id')
df_20160918_add_page_info
| user_id | page_id | reaction_time | page_name | category | type | type_sub | type_issue | fan_count | talking_about_count | page_url | total_like | total_comment | total_share | 1:07:14 | rank_1:7:14 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 502548149224 | 10643211755 | 1 | NPR | Non-Profit Organization | media | radio | NaN | 5132848 | 1151976 | https://www.facebook.com/NPR | 207136 | 45354 | 65668 | 144396.6 | 70 |
| 1 | 556509309462 | 10643211755 | 1 | NPR | Non-Profit Organization | media | radio | NaN | 5132848 | 1151976 | https://www.facebook.com/NPR | 207136 | 45354 | 65668 | 144396.6 | 70 |
| 2 | 583950982121 | 10643211755 | 1 | NPR | Non-Profit Organization | media | radio | NaN | 5132848 | 1151976 | https://www.facebook.com/NPR | 207136 | 45354 | 65668 | 144396.6 | 70 |
| 3 | 620911238315 | 10643211755 | 5 | NPR | Non-Profit Organization | media | radio | NaN | 5132848 | 1151976 | https://www.facebook.com/NPR | 207136 | 45354 | 65668 | 144396.6 | 70 |
| 4 | 646962740454 | 10643211755 | 1 | NPR | Non-Profit Organization | media | radio | NaN | 5132848 | 1151976 | https://www.facebook.com/NPR | 207136 | 45354 | 65668 | 144396.6 | 70 |
| ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... |
| 347591 | 10203774877187514 | 116849198376359 | 1 | Michael Ausiello | Public Figure | figure | journalist | NaN | 32020 | 8857 | https://www.facebook.com/MichaelAusiello | 857 | 49 | 1678 | 2469.2 | 988 |
| 347592 | 10204607407239955 | 116849198376359 | 1 | Michael Ausiello | Public Figure | figure | journalist | NaN | 32020 | 8857 | https://www.facebook.com/MichaelAusiello | 857 | 49 | 1678 | 2469.2 | 988 |
| 347593 | 10206904497596294 | 116849198376359 | 1 | Michael Ausiello | Public Figure | figure | journalist | NaN | 32020 | 8857 | https://www.facebook.com/MichaelAusiello | 857 | 49 | 1678 | 2469.2 | 988 |
| 347594 | 10201179040873127 | 9583477694 | 1 | Adryenn Ashley | Public Figure | figure | journalist | NaN | 93109 | 10525 | https://www.facebook.com/AdryennAshley | 1338 | 4596 | 714 | 4350.6 | 727 |
| 347595 | 10204112590510365 | 9583477694 | 1 | Adryenn Ashley | Public Figure | figure | journalist | NaN | 93109 | 10525 | https://www.facebook.com/AdryennAshley | 1338 | 4596 | 714 | 4350.6 | 727 |
347596 rows × 16 columns
# draw bipartite graph
def nx_graph_from_pandas_edgelist(df):
B = nx.Graph()
for ir in df.itertuples():
B.add_node(ir[1], bipartite=0)
B.add_node(ir[4], bipartite=1)
B.add_edge(ir[1], ir[4], weight=ir[3])
return B
B = nx_graph_from_pandas_edgelist(df_20160918_add_page_info)
nx.info(B)
C:\Users\Jackyfirst\AppData\Local\Temp\ipykernel_560\491313857.py:2: DeprecationWarning: info is deprecated and will be removed in version 3.0. nx.info(B)
'Graph with 84044 nodes and 347164 edges'
# Find top x reaction_time Pages
df2_20160918 = df_20160918.groupby(by=['page_id']).sum().groupby(level=[0]).cumsum()
df2_20160918 = df2_20160918.sort_values(by='reaction_time', ascending=False)
df2_20160918 = df2_20160918.drop("user_id", axis='columns')
df2_20160918_add_page_info = df2_20160918.merge(right=page_info, right_on='page_id', left_on='page_id')
df2_20160918_add_page_info = df2_20160918_add_page_info.reset_index()
df2_20160918_add_page_info.head(30)
| index | page_id | reaction_time | page_name | category | type | type_sub | type_issue | fan_count | talking_about_count | page_url | total_like | total_comment | total_share | 1:07:14 | rank_1:7:14 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 0 | 346937065399354 | 24317.0 | Occupy Democrats | Political Organization | group | NaN | NaN | 3900088 | 10721362 | https://www.facebook.com/OccupyDemocrats | 792155 | 74491 | 798849 | 1249747.8 | 3 |
| 1 | 1 | 15704546335 | 24200.0 | Fox News | Media/News/Publishing | media | tv | NaN | 13329520 | 3825122 | https://www.facebook.com/FoxNews | 4480553 | 2117810 | 1865659 | 4542444.9 | 1 |
| 2 | 2 | 153080620724 | 15644.0 | Donald J. Trump | Public Figure | figure | politician | NaN | 10801785 | 1722696 | https://www.facebook.com/DonaldTrump | 4463122 | 486152 | 551204 | 1558304.2 | 2 |
| 3 | 3 | 21785951839 | 14821.0 | 9GAG | App Page | others | NaN | NaN | 32155423 | 11547502 | https://www.facebook.com/9gag | 13909 | 725 | 1555 | 4075.4 | 760 |
| 4 | 4 | 179035672287016 | 13715.0 | American News | Media/News/Publishing | media | website | NaN | 5368155 | 1672285 | https://www.facebook.com/ThePatriotReview | 538521 | 51804 | 182386 | 345455.3 | 27 |
| 5 | 5 | 341163402640457 | 11368.0 | NowThis | News/Media Website | media | website | NaN | 7743317 | 10964723 | https://www.facebook.com/NowThisNews | 147450 | 17401 | 4662 | 33452.5 | 222 |
| 6 | 6 | 18468761129 | 10566.0 | The Huffington Post | Media/News/Publishing | media | website | NaN | 8200138 | 2338598 | https://www.facebook.com/HuffingtonPost | 1025157 | 89556 | 412304 | 742430.5 | 8 |
| 7 | 7 | 95475020353 | 10407.0 | Breitbart | Media/News/Publishing | media | website | NaN | 2445780 | 1180481 | https://www.facebook.com/Breitbart | 1132039 | 313784 | 552679 | 1106603.3 | 4 |
| 8 | 8 | 199098633470668 | 9783.0 | The LAD Bible | Media/News/Publishing | media | website | NaN | 16164893 | 18579204 | https://www.facebook.com/LADbible | 46478 | 9710 | 9196 | 24319.2 | 259 |
| 9 | 9 | 205344452828349 | 9551.0 | George Takei | Actor/Director | figure | journalist | NaN | 9856263 | 2527229 | https://www.facebook.com/georgehtakei | 10717 | 2273 | 596 | 3497.2 | 822 |
| 10 | 10 | 114517875225866 | 9126.0 | The Other 98% | Organization | group | NaN | inequality | 3088088 | 5241170 | https://www.facebook.com/TheOther98 | 99948 | 9665 | 134243 | 204700.5 | 50 |
| 11 | 11 | 22067606728 | 8529.0 | Allen West | Public Figure | figure | politician | NaN | 2436623 | 1552544 | https://www.facebook.com/AllenBWest | 17445 | 750 | 7716 | 13071.9 | 403 |
| 12 | 12 | 889307941125736 | 8003.0 | Hillary Clinton | Politician | figure | politician | NaN | 6159021 | 2269940 | https://www.facebook.com/hillaryclinton | 2042363 | 461294 | 349858 | 1016943.3 | 5 |
| 13 | 13 | 226821494115353 | 7525.0 | Nation In Distress | Media/News/Publishing | media | website | NaN | 1649087 | 3154824 | https://www.facebook.com/NationInDistress | 20822 | 3478 | 7454 | 14952.4 | 370 |
| 14 | 14 | 107705785934333 | 7415.0 | The Federalist Papers | Media/News/Publishing | media | website | NaN | 2175186 | 1271961 | https://www.facebook.com/TheFederalistPapers | 329771 | 54575 | 199279 | 350170.2 | 26 |
| 15 | 15 | 5550296508 | 6341.0 | CNN | Media/News/Publishing | media | tv | NaN | 23414282 | 3217462 | https://www.facebook.com/cnn | 617880 | 289587 | 160728 | 489518.1 | 16 |
| 16 | 16 | 86680728811 | 6212.0 | ABC News | TV Network | media | tv | NaN | 9108005 | 3453112 | https://www.facebook.com/ABCNews | 399188 | 201179 | 77633 | 289430.3 | 34 |
| 17 | 17 | 112723252096438 | 6149.0 | The Political Insider | News/Media Website | media | website | NaN | 2598529 | 1004533 | https://www.facebook.com/ThePoliticalInsider | 227963 | 33948 | 87747 | 169405.7 | 60 |
| 18 | 18 | 10643211755 | 6121.0 | NPR | Non-Profit Organization | media | radio | NaN | 5132848 | 1151976 | https://www.facebook.com/NPR | 207136 | 45354 | 65668 | 144396.6 | 70 |
| 19 | 19 | 21898300328 | 6112.0 | BuzzFeed | Media/News/Publishing | media | website | NaN | 8297094 | 2953846 | https://www.facebook.com/BuzzFeed | 49504 | 9953 | 22182 | 42972.3 | 191 |
| 20 | 20 | 184859785026060 | 5992.0 | Faith Family America | Media/News/Publishing | media | website | NaN | 3537582 | 1312529 | https://www.facebook.com/faithfamilyamerica | 53742 | 15053 | 29102 | 56654.1 | 163 |
| 21 | 21 | 219856014723410 | 5960.0 | D.L. Hughley | Comedian | figure | journalist | NaN | 2201214 | 2258805 | https://www.facebook.com/RealDLHughley | 119637 | 18885 | 72832 | 127148.0 | 79 |
| 22 | 22 | 354522044588660 | 5822.0 | Upworthy | Media/News/Publishing | media | website | NaN | 10028666 | 3138601 | https://www.facebook.com/Upworthy | 34369 | 1443 | 7292 | 14655.8 | 375 |
| 23 | 23 | 169676909894983 | 5606.0 | Uncle Sam's Misguided Children | Website | media | website | NaN | 1228559 | 2798671 | https://www.facebook.com/UncleSamsMisguidedChi... | 8601 | 2853 | 8844 | 15238.8 | 359 |
| 24 | 24 | 133961323610549 | 5485.0 | Donald Trump For President | Politician | figure | politician | NaN | 1633254 | 1437603 | https://www.facebook.com/DonaldTrump4President | 168286 | 36829 | 75417 | 148192.7 | 67 |
| 25 | 25 | 177486166274 | 5335.0 | Being Liberal | Media/News/Publishing | media | website | NaN | 1499325 | 803868 | https://www.facebook.com/beingliberal.org | 367306 | 34054 | 130558 | 243349.6 | 40 |
| 26 | 26 | 513813158657249 | 5325.0 | Mad World News | News/Media Website | media | website | NaN | 1123045 | 1989049 | https://www.facebook.com/MadWorldNewsCorp | 11927 | 3117 | 26557 | 40554.4 | 199 |
| 27 | 27 | 339226922847416 | 5319.0 | AWM America | News/Media Website | media | website | NaN | 6161533 | 1876242 | https://www.facebook.com/AWMAmerica | 19351 | 5165 | 4352 | 11643.4 | 434 |
| 28 | 28 | 9124187907 | 5311.0 | U.S. Senator Bernie Sanders | Politician | figure | politician | NaN | 4269815 | 1004148 | https://www.facebook.com/senatorsanders | 20139 | 1260 | 11770 | 19373.9 | 310 |
| 29 | 29 | 799539910084929 | 5175.0 | Shaun King | Journalist | figure | journalist | NaN | 900102 | 2465048 | https://www.facebook.com/shaunking | 96170 | 11014 | 57223 | 97439.0 | 96 |
page_id_20160918 = df2_20160918_add_page_info.page_id.tolist()
page_id_20160918[0:30]
[346937065399354, 15704546335, 153080620724, 21785951839, 179035672287016, 341163402640457, 18468761129, 95475020353, 199098633470668, 205344452828349, 114517875225866, 22067606728, 889307941125736, 226821494115353, 107705785934333, 5550296508, 86680728811, 112723252096438, 10643211755, 21898300328, 184859785026060, 219856014723410, 354522044588660, 169676909894983, 133961323610549, 177486166274, 513813158657249, 339226922847416, 9124187907, 799539910084929]
# only analysis top x pages
df3_20160918_add_page_info = df_20160918_add_page_info[df_20160918_add_page_info.page_id.isin(page_id_20160918[0:30])]
df3_20160918_add_page_info.reset_index(drop=True, inplace=True)
df3_20160918_add_page_info
| user_id | page_id | reaction_time | page_name | category | type | type_sub | type_issue | fan_count | talking_about_count | page_url | total_like | total_comment | total_share | 1:07:14 | rank_1:7:14 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 502548149224 | 10643211755 | 1 | NPR | Non-Profit Organization | media | radio | NaN | 5132848 | 1151976 | https://www.facebook.com/NPR | 207136 | 45354 | 65668 | 144396.6 | 70 |
| 1 | 556509309462 | 10643211755 | 1 | NPR | Non-Profit Organization | media | radio | NaN | 5132848 | 1151976 | https://www.facebook.com/NPR | 207136 | 45354 | 65668 | 144396.6 | 70 |
| 2 | 583950982121 | 10643211755 | 1 | NPR | Non-Profit Organization | media | radio | NaN | 5132848 | 1151976 | https://www.facebook.com/NPR | 207136 | 45354 | 65668 | 144396.6 | 70 |
| 3 | 620911238315 | 10643211755 | 5 | NPR | Non-Profit Organization | media | radio | NaN | 5132848 | 1151976 | https://www.facebook.com/NPR | 207136 | 45354 | 65668 | 144396.6 | 70 |
| 4 | 646962740454 | 10643211755 | 1 | NPR | Non-Profit Organization | media | radio | NaN | 5132848 | 1151976 | https://www.facebook.com/NPR | 207136 | 45354 | 65668 | 144396.6 | 70 |
| ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... |
| 99510 | 10208786804685972 | 226821494115353 | 5 | Nation In Distress | Media/News/Publishing | media | website | NaN | 1649087 | 3154824 | https://www.facebook.com/NationInDistress | 20822 | 3478 | 7454 | 14952.4 | 370 |
| 99511 | 10209261894057338 | 226821494115353 | 1 | Nation In Distress | Media/News/Publishing | media | website | NaN | 1649087 | 3154824 | https://www.facebook.com/NationInDistress | 20822 | 3478 | 7454 | 14952.4 | 370 |
| 99512 | 10209839541891315 | 226821494115353 | 1 | Nation In Distress | Media/News/Publishing | media | website | NaN | 1649087 | 3154824 | https://www.facebook.com/NationInDistress | 20822 | 3478 | 7454 | 14952.4 | 370 |
| 99513 | 10210076675656645 | 226821494115353 | 2 | Nation In Distress | Media/News/Publishing | media | website | NaN | 1649087 | 3154824 | https://www.facebook.com/NationInDistress | 20822 | 3478 | 7454 | 14952.4 | 370 |
| 99514 | 10210813284436493 | 226821494115353 | 1 | Nation In Distress | Media/News/Publishing | media | website | NaN | 1649087 | 3154824 | https://www.facebook.com/NationInDistress | 20822 | 3478 | 7454 | 14952.4 | 370 |
99515 rows × 16 columns
# graph visualization
B_20160918 = nx_graph_from_pandas_edgelist(df3_20160918_add_page_info)
nx.info(B_20160918)
C:\Users\Jackyfirst\AppData\Local\Temp\ipykernel_560\3359723739.py:2: DeprecationWarning: info is deprecated and will be removed in version 3.0. nx.info(B_20160918)
'Graph with 54395 nodes and 99515 edges'
bottom_nodes, top_nodes = bipartite.sets(B_20160918)
list(top_nodes)
['Donald Trump For President', 'The LAD Bible', 'Shaun King', "Uncle Sam's Misguided Children", 'George Takei', 'Being Liberal', 'Occupy Democrats', 'Upworthy', 'Nation In Distress', 'NowThis', 'The Huffington Post', 'The Political Insider', 'Faith Family America', 'Allen West', 'Mad World News', 'U.S. Senator Bernie Sanders', 'The Federalist Papers', '9GAG', 'AWM America', 'D.L. Hughley', 'NPR', 'American News', 'ABC News', 'The Other 98%', 'Breitbart', 'BuzzFeed', 'Fox News', 'Donald J. Trump', 'CNN', 'Hillary Clinton']
# Project users' nodes on pages' node
G_20160918 = bipartite.weighted_projected_graph(B_20160918, list(top_nodes), ratio=True)
G_20160918
<networkx.classes.graph.Graph at 0x27033b87160>
for u, v, d in G_20160918.edges(data=True):
d['weight'] = round(d['weight'], 4)
list(G_20160918.edges(data=True))
[('Donald Trump For President', 'Allen West', {'weight': 0.0054}),
('Donald Trump For President', 'Mad World News', {'weight': 0.0042}),
('Donald Trump For President', 'The Federalist Papers', {'weight': 0.0052}),
('Donald Trump For President',
'U.S. Senator Bernie Sanders',
{'weight': 0.0002}),
('Donald Trump For President', '9GAG', {'weight': 0.0001}),
('Donald Trump For President', 'The LAD Bible', {'weight': 0.0003}),
('Donald Trump For President', 'AWM America', {'weight': 0.0047}),
('Donald Trump For President',
"Uncle Sam's Misguided Children",
{'weight': 0.002}),
('Donald Trump For President', 'George Takei', {'weight': 0.0003}),
('Donald Trump For President', 'NPR', {'weight': 0.0001}),
('Donald Trump For President', 'D.L. Hughley', {'weight': 0.0001}),
('Donald Trump For President', 'Being Liberal', {'weight': 0.0}),
('Donald Trump For President', 'ABC News', {'weight': 0.0011}),
('Donald Trump For President', 'American News', {'weight': 0.0087}),
('Donald Trump For President', 'Occupy Democrats', {'weight': 0.0001}),
('Donald Trump For President', 'Breitbart', {'weight': 0.0065}),
('Donald Trump For President', 'The Other 98%', {'weight': 0.0001}),
('Donald Trump For President', 'Nation In Distress', {'weight': 0.0069}),
('Donald Trump For President', 'Upworthy', {'weight': 0.0003}),
('Donald Trump For President', 'NowThis', {'weight': 0.0012}),
('Donald Trump For President', 'BuzzFeed', {'weight': 0.0001}),
('Donald Trump For President', 'The Huffington Post', {'weight': 0.0001}),
('Donald Trump For President', 'Fox News', {'weight': 0.0096}),
('Donald Trump For President', 'The Political Insider', {'weight': 0.0067}),
('Donald Trump For President', 'Donald J. Trump', {'weight': 0.0103}),
('Donald Trump For President', 'CNN', {'weight': 0.0006}),
('Donald Trump For President', 'Faith Family America', {'weight': 0.0045}),
('Donald Trump For President', 'Hillary Clinton', {'weight': 0.0001}),
('The LAD Bible', 'Allen West', {'weight': 0.0007}),
('The LAD Bible', 'Mad World News', {'weight': 0.0002}),
('The LAD Bible', 'The Federalist Papers', {'weight': 0.0003}),
('The LAD Bible', 'U.S. Senator Bernie Sanders', {'weight': 0.0017}),
('The LAD Bible', '9GAG', {'weight': 0.0133}),
('The LAD Bible', 'AWM America', {'weight': 0.0006}),
('The LAD Bible', 'Shaun King', {'weight': 0.0009}),
('The LAD Bible', "Uncle Sam's Misguided Children", {'weight': 0.0009}),
('The LAD Bible', 'George Takei', {'weight': 0.0044}),
('The LAD Bible', 'NPR', {'weight': 0.001}),
('The LAD Bible', 'D.L. Hughley', {'weight': 0.0009}),
('The LAD Bible', 'Being Liberal', {'weight': 0.0007}),
('The LAD Bible', 'ABC News', {'weight': 0.0032}),
('The LAD Bible', 'American News', {'weight': 0.0007}),
('The LAD Bible', 'Occupy Democrats', {'weight': 0.0093}),
('The LAD Bible', 'The Other 98%', {'weight': 0.0034}),
('The LAD Bible', 'Breitbart', {'weight': 0.0007}),
('The LAD Bible', 'Upworthy', {'weight': 0.0045}),
('The LAD Bible', 'NowThis', {'weight': 0.0164}),
('The LAD Bible', 'Nation In Distress', {'weight': 0.0004}),
('The LAD Bible', 'BuzzFeed', {'weight': 0.0054}),
('The LAD Bible', 'The Huffington Post', {'weight': 0.0033}),
('The LAD Bible', 'Fox News', {'weight': 0.0022}),
('The LAD Bible', 'The Political Insider', {'weight': 0.0004}),
('The LAD Bible', 'Donald J. Trump', {'weight': 0.0013}),
('The LAD Bible', 'CNN', {'weight': 0.0028}),
('The LAD Bible', 'Faith Family America', {'weight': 0.0004}),
('The LAD Bible', 'Hillary Clinton', {'weight': 0.0015}),
('Shaun King', 'Allen West', {'weight': 0.0}),
('Shaun King', 'U.S. Senator Bernie Sanders', {'weight': 0.0032}),
('Shaun King', 'The Federalist Papers', {'weight': 0.0}),
('Shaun King', '9GAG', {'weight': 0.0005}),
('Shaun King', 'AWM America', {'weight': 0.0001}),
('Shaun King', "Uncle Sam's Misguided Children", {'weight': 0.0001}),
('Shaun King', 'George Takei', {'weight': 0.0032}),
('Shaun King', 'NPR', {'weight': 0.0038}),
('Shaun King', 'D.L. Hughley', {'weight': 0.0047}),
('Shaun King', 'Being Liberal', {'weight': 0.0021}),
('Shaun King', 'American News', {'weight': 0.0001}),
('Shaun King', 'ABC News', {'weight': 0.0017}),
('Shaun King', 'Occupy Democrats', {'weight': 0.0077}),
('Shaun King', 'The Other 98%', {'weight': 0.0058}),
('Shaun King', 'Breitbart', {'weight': 0.0}),
('Shaun King', 'NowThis', {'weight': 0.0045}),
('Shaun King', 'Upworthy', {'weight': 0.0026}),
('Shaun King', 'Nation In Distress', {'weight': 0.0}),
('Shaun King', 'BuzzFeed', {'weight': 0.0023}),
('Shaun King', 'The Huffington Post', {'weight': 0.0049}),
('Shaun King', 'Fox News', {'weight': 0.0003}),
('Shaun King', 'The Political Insider', {'weight': 0.0}),
('Shaun King', 'CNN', {'weight': 0.0024}),
('Shaun King', 'Donald J. Trump', {'weight': 0.0001}),
('Shaun King', 'Faith Family America', {'weight': 0.0001}),
('Shaun King', 'Hillary Clinton', {'weight': 0.0018}),
("Uncle Sam's Misguided Children", 'Allen West', {'weight': 0.0046}),
("Uncle Sam's Misguided Children", 'Mad World News', {'weight': 0.0021}),
("Uncle Sam's Misguided Children",
'The Federalist Papers',
{'weight': 0.0038}),
("Uncle Sam's Misguided Children",
'U.S. Senator Bernie Sanders',
{'weight': 0.0006}),
("Uncle Sam's Misguided Children", '9GAG', {'weight': 0.0003}),
("Uncle Sam's Misguided Children", 'AWM America', {'weight': 0.0022}),
("Uncle Sam's Misguided Children", 'George Takei', {'weight': 0.0005}),
("Uncle Sam's Misguided Children", 'NPR', {'weight': 0.0001}),
("Uncle Sam's Misguided Children", 'D.L. Hughley', {'weight': 0.0}),
("Uncle Sam's Misguided Children", 'Being Liberal', {'weight': 0.0001}),
("Uncle Sam's Misguided Children", 'American News', {'weight': 0.004}),
("Uncle Sam's Misguided Children", 'ABC News', {'weight': 0.0014}),
("Uncle Sam's Misguided Children", 'Occupy Democrats', {'weight': 0.0008}),
("Uncle Sam's Misguided Children", 'Breitbart', {'weight': 0.0042}),
("Uncle Sam's Misguided Children", 'The Other 98%', {'weight': 0.0006}),
("Uncle Sam's Misguided Children", 'Nation In Distress', {'weight': 0.0026}),
("Uncle Sam's Misguided Children", 'NowThis', {'weight': 0.0021}),
("Uncle Sam's Misguided Children", 'Upworthy', {'weight': 0.0003}),
("Uncle Sam's Misguided Children", 'BuzzFeed', {'weight': 0.0003}),
("Uncle Sam's Misguided Children", 'The Huffington Post', {'weight': 0.0002}),
("Uncle Sam's Misguided Children", 'Fox News', {'weight': 0.0079}),
("Uncle Sam's Misguided Children",
'The Political Insider',
{'weight': 0.0023}),
("Uncle Sam's Misguided Children", 'CNN', {'weight': 0.0009}),
("Uncle Sam's Misguided Children", 'Donald J. Trump', {'weight': 0.005}),
("Uncle Sam's Misguided Children",
'Faith Family America',
{'weight': 0.0019}),
("Uncle Sam's Misguided Children", 'Hillary Clinton', {'weight': 0.0001}),
('George Takei', 'Allen West', {'weight': 0.0006}),
('George Takei', 'Mad World News', {'weight': 0.0003}),
('George Takei', 'U.S. Senator Bernie Sanders', {'weight': 0.0075}),
('George Takei', 'The Federalist Papers', {'weight': 0.0007}),
('George Takei', '9GAG', {'weight': 0.0034}),
('George Takei', 'AWM America', {'weight': 0.0009}),
('George Takei', 'D.L. Hughley', {'weight': 0.0015}),
('George Takei', 'NPR', {'weight': 0.0093}),
('George Takei', 'Being Liberal', {'weight': 0.0058}),
('George Takei', 'American News', {'weight': 0.0009}),
('George Takei', 'ABC News', {'weight': 0.0034}),
('George Takei', 'Occupy Democrats', {'weight': 0.0121}),
('George Takei', 'The Other 98%', {'weight': 0.0089}),
('George Takei', 'Breitbart', {'weight': 0.0006}),
('George Takei', 'Upworthy', {'weight': 0.0086}),
('George Takei', 'NowThis', {'weight': 0.0067}),
('George Takei', 'Nation In Distress', {'weight': 0.0002}),
('George Takei', 'BuzzFeed', {'weight': 0.0069}),
('George Takei', 'The Huffington Post', {'weight': 0.0112}),
('George Takei', 'Fox News', {'weight': 0.002}),
('George Takei', 'The Political Insider', {'weight': 0.0005}),
('George Takei', 'CNN', {'weight': 0.0046}),
('George Takei', 'Donald J. Trump', {'weight': 0.0008}),
('George Takei', 'Faith Family America', {'weight': 0.0004}),
('George Takei', 'Hillary Clinton', {'weight': 0.005}),
('Being Liberal', 'Allen West', {'weight': 0.0001}),
('Being Liberal', 'Mad World News', {'weight': 0.0001}),
('Being Liberal', 'U.S. Senator Bernie Sanders', {'weight': 0.0056}),
('Being Liberal', 'The Federalist Papers', {'weight': 0.0001}),
('Being Liberal', '9GAG', {'weight': 0.0003}),
('Being Liberal', 'AWM America', {'weight': 0.0005}),
('Being Liberal', 'NPR', {'weight': 0.0051}),
('Being Liberal', 'D.L. Hughley', {'weight': 0.0011}),
('Being Liberal', 'ABC News', {'weight': 0.0016}),
('Being Liberal', 'American News', {'weight': 0.0003}),
('Being Liberal', 'Occupy Democrats', {'weight': 0.0136}),
('Being Liberal', 'The Other 98%', {'weight': 0.0078}),
('Being Liberal', 'Breitbart', {'weight': 0.0001}),
('Being Liberal', 'Upworthy', {'weight': 0.0044}),
('Being Liberal', 'NowThis', {'weight': 0.0029}),
('Being Liberal', 'Nation In Distress', {'weight': 0.0001}),
('Being Liberal', 'BuzzFeed', {'weight': 0.002}),
('Being Liberal', 'The Huffington Post', {'weight': 0.0074}),
('Being Liberal', 'Fox News', {'weight': 0.0002}),
('Being Liberal', 'The Political Insider', {'weight': 0.0001}),
('Being Liberal', 'CNN', {'weight': 0.0026}),
('Being Liberal', 'Donald J. Trump', {'weight': 0.0}),
('Being Liberal', 'Faith Family America', {'weight': 0.0002}),
('Being Liberal', 'Hillary Clinton', {'weight': 0.0054}),
('Occupy Democrats', 'Allen West', {'weight': 0.0004}),
('Occupy Democrats', 'Mad World News', {'weight': 0.0003}),
('Occupy Democrats', 'U.S. Senator Bernie Sanders', {'weight': 0.017}),
('Occupy Democrats', 'The Federalist Papers', {'weight': 0.0006}),
('Occupy Democrats', '9GAG', {'weight': 0.0037}),
('Occupy Democrats', 'AWM America', {'weight': 0.0024}),
('Occupy Democrats', 'NPR', {'weight': 0.0092}),
('Occupy Democrats', 'D.L. Hughley', {'weight': 0.0073}),
('Occupy Democrats', 'American News', {'weight': 0.0022}),
('Occupy Democrats', 'ABC News', {'weight': 0.0079}),
('Occupy Democrats', 'The Other 98%', {'weight': 0.0214}),
('Occupy Democrats', 'Breitbart', {'weight': 0.0006}),
('Occupy Democrats', 'NowThis', {'weight': 0.0241}),
('Occupy Democrats', 'Upworthy', {'weight': 0.0126}),
('Occupy Democrats', 'Nation In Distress', {'weight': 0.0006}),
('Occupy Democrats', 'BuzzFeed', {'weight': 0.0056}),
('Occupy Democrats', 'The Huffington Post', {'weight': 0.017}),
('Occupy Democrats', 'Fox News', {'weight': 0.0022}),
('Occupy Democrats', 'The Political Insider', {'weight': 0.0004}),
('Occupy Democrats', 'CNN', {'weight': 0.0102}),
('Occupy Democrats', 'Donald J. Trump', {'weight': 0.0006}),
('Occupy Democrats', 'Faith Family America', {'weight': 0.0012}),
('Occupy Democrats', 'Hillary Clinton', {'weight': 0.0156}),
('Upworthy', 'Allen West', {'weight': 0.0006}),
('Upworthy', 'Mad World News', {'weight': 0.0003}),
('Upworthy', 'U.S. Senator Bernie Sanders', {'weight': 0.0058}),
('Upworthy', 'The Federalist Papers', {'weight': 0.0005}),
('Upworthy', '9GAG', {'weight': 0.0017}),
('Upworthy', 'AWM America', {'weight': 0.0013}),
('Upworthy', 'D.L. Hughley', {'weight': 0.0016}),
('Upworthy', 'NPR', {'weight': 0.0067}),
('Upworthy', 'ABC News', {'weight': 0.0036}),
('Upworthy', 'American News', {'weight': 0.0014}),
('Upworthy', 'The Other 98%', {'weight': 0.0069}),
('Upworthy', 'Breitbart', {'weight': 0.0005}),
('Upworthy', 'NowThis', {'weight': 0.0111}),
('Upworthy', 'Nation In Distress', {'weight': 0.0005}),
('Upworthy', 'BuzzFeed', {'weight': 0.0055}),
('Upworthy', 'The Huffington Post', {'weight': 0.0104}),
('Upworthy', 'Fox News', {'weight': 0.0019}),
('Upworthy', 'The Political Insider', {'weight': 0.0006}),
('Upworthy', 'CNN', {'weight': 0.0051}),
('Upworthy', 'Donald J. Trump', {'weight': 0.0007}),
('Upworthy', 'Faith Family America', {'weight': 0.0008}),
('Upworthy', 'Hillary Clinton', {'weight': 0.0047}),
('Nation In Distress', 'Allen West', {'weight': 0.0054}),
('Nation In Distress', 'Mad World News', {'weight': 0.007}),
('Nation In Distress', 'The Federalist Papers', {'weight': 0.007}),
('Nation In Distress', 'U.S. Senator Bernie Sanders', {'weight': 0.0003}),
('Nation In Distress', '9GAG', {'weight': 0.0001}),
('Nation In Distress', 'AWM America', {'weight': 0.007}),
('Nation In Distress', 'NPR', {'weight': 0.0001}),
('Nation In Distress', 'D.L. Hughley', {'weight': 0.0001}),
('Nation In Distress', 'ABC News', {'weight': 0.0013}),
('Nation In Distress', 'American News', {'weight': 0.0124}),
('Nation In Distress', 'Breitbart', {'weight': 0.0067}),
('Nation In Distress', 'The Other 98%', {'weight': 0.0002}),
('Nation In Distress', 'NowThis', {'weight': 0.0015}),
('Nation In Distress', 'BuzzFeed', {'weight': 0.0}),
('Nation In Distress', 'The Huffington Post', {'weight': 0.0002}),
('Nation In Distress', 'Fox News', {'weight': 0.0088}),
('Nation In Distress', 'The Political Insider', {'weight': 0.0088}),
('Nation In Distress', 'Donald J. Trump', {'weight': 0.0065}),
('Nation In Distress', 'CNN', {'weight': 0.0004}),
('Nation In Distress', 'Faith Family America', {'weight': 0.0069}),
('Nation In Distress', 'Hillary Clinton', {'weight': 0.0001}),
('NowThis', 'Allen West', {'weight': 0.0022}),
('NowThis', 'Mad World News', {'weight': 0.0012}),
('NowThis', 'U.S. Senator Bernie Sanders', {'weight': 0.0083}),
('NowThis', 'The Federalist Papers', {'weight': 0.002}),
('NowThis', '9GAG', {'weight': 0.0079}),
('NowThis', 'AWM America', {'weight': 0.004}),
('NowThis', 'D.L. Hughley', {'weight': 0.0039}),
('NowThis', 'NPR', {'weight': 0.0044}),
('NowThis', 'ABC News', {'weight': 0.0089}),
('NowThis', 'American News', {'weight': 0.0039}),
('NowThis', 'The Other 98%', {'weight': 0.0096}),
('NowThis', 'Breitbart', {'weight': 0.0023}),
('NowThis', 'BuzzFeed', {'weight': 0.0084}),
('NowThis', 'The Huffington Post', {'weight': 0.0088}),
('NowThis', 'Fox News', {'weight': 0.0072}),
('NowThis', 'The Political Insider', {'weight': 0.0021}),
('NowThis', 'CNN', {'weight': 0.0087}),
('NowThis', 'Donald J. Trump', {'weight': 0.0028}),
('NowThis', 'Faith Family America', {'weight': 0.0019}),
('NowThis', 'Hillary Clinton', {'weight': 0.0051}),
('The Huffington Post', 'Allen West', {'weight': 0.0003}),
('The Huffington Post', 'Mad World News', {'weight': 0.0002}),
('The Huffington Post', 'U.S. Senator Bernie Sanders', {'weight': 0.0075}),
('The Huffington Post', 'The Federalist Papers', {'weight': 0.0003}),
('The Huffington Post', '9GAG', {'weight': 0.0019}),
('The Huffington Post', 'AWM America', {'weight': 0.0006}),
('The Huffington Post', 'D.L. Hughley', {'weight': 0.0029}),
('The Huffington Post', 'NPR', {'weight': 0.0114}),
('The Huffington Post', 'ABC News', {'weight': 0.0052}),
('The Huffington Post', 'American News', {'weight': 0.0006}),
('The Huffington Post', 'The Other 98%', {'weight': 0.0097}),
('The Huffington Post', 'Breitbart', {'weight': 0.0002}),
('The Huffington Post', 'BuzzFeed', {'weight': 0.0089}),
('The Huffington Post', 'Fox News', {'weight': 0.0015}),
('The Huffington Post', 'The Political Insider', {'weight': 0.0001}),
('The Huffington Post', 'CNN', {'weight': 0.0083}),
('The Huffington Post', 'Donald J. Trump', {'weight': 0.0005}),
('The Huffington Post', 'Faith Family America', {'weight': 0.0003}),
('The Huffington Post', 'Hillary Clinton', {'weight': 0.0094}),
('The Political Insider', 'Allen West', {'weight': 0.0069}),
('The Political Insider', 'Mad World News', {'weight': 0.0071}),
('The Political Insider', 'The Federalist Papers', {'weight': 0.0079}),
('The Political Insider', 'U.S. Senator Bernie Sanders', {'weight': 0.0003}),
('The Political Insider', '9GAG', {'weight': 0.0001}),
('The Political Insider', 'AWM America', {'weight': 0.011}),
('The Political Insider', 'NPR', {'weight': 0.0001}),
('The Political Insider', 'D.L. Hughley', {'weight': 0.0001}),
('The Political Insider', 'ABC News', {'weight': 0.0015}),
('The Political Insider', 'American News', {'weight': 0.0164}),
('The Political Insider', 'Breitbart', {'weight': 0.0081}),
('The Political Insider', 'The Other 98%', {'weight': 0.0002}),
('The Political Insider', 'BuzzFeed', {'weight': 0.0001}),
('The Political Insider', 'Fox News', {'weight': 0.0116}),
('The Political Insider', 'Donald J. Trump', {'weight': 0.0073}),
('The Political Insider', 'CNN', {'weight': 0.0008}),
('The Political Insider', 'Faith Family America', {'weight': 0.0085}),
('The Political Insider', 'Hillary Clinton', {'weight': 0.0001}),
('Faith Family America', 'Allen West', {'weight': 0.0054}),
('Faith Family America', 'Mad World News', {'weight': 0.0053}),
('Faith Family America', 'The Federalist Papers', {'weight': 0.0071}),
('Faith Family America', 'U.S. Senator Bernie Sanders', {'weight': 0.0006}),
('Faith Family America', '9GAG', {'weight': 0.0}),
('Faith Family America', 'AWM America', {'weight': 0.0104}),
('Faith Family America', 'D.L. Hughley', {'weight': 0.0002}),
('Faith Family America', 'NPR', {'weight': 0.0001}),
('Faith Family America', 'American News', {'weight': 0.0141}),
('Faith Family America', 'ABC News', {'weight': 0.0012}),
('Faith Family America', 'Breitbart', {'weight': 0.0057}),
('Faith Family America', 'The Other 98%', {'weight': 0.0003}),
('Faith Family America', 'BuzzFeed', {'weight': 0.0001}),
('Faith Family America', 'Fox News', {'weight': 0.0097}),
('Faith Family America', 'Donald J. Trump', {'weight': 0.0056}),
('Faith Family America', 'CNN', {'weight': 0.0008}),
('Faith Family America', 'Hillary Clinton', {'weight': 0.0005}),
('Allen West', 'Mad World News', {'weight': 0.0034}),
('Allen West', 'The Federalist Papers', {'weight': 0.01}),
('Allen West', 'U.S. Senator Bernie Sanders', {'weight': 0.0004}),
('Allen West', '9GAG', {'weight': 0.0002}),
('Allen West', 'AWM America', {'weight': 0.0058}),
('Allen West', 'NPR', {'weight': 0.0002}),
('Allen West', 'D.L. Hughley', {'weight': 0.0002}),
('Allen West', 'ABC News', {'weight': 0.0021}),
('Allen West', 'American News', {'weight': 0.0106}),
('Allen West', 'Breitbart', {'weight': 0.0124}),
('Allen West', 'The Other 98%', {'weight': 0.0003}),
('Allen West', 'BuzzFeed', {'weight': 0.0002}),
('Allen West', 'Fox News', {'weight': 0.0191}),
('Allen West', 'CNN', {'weight': 0.0012}),
('Allen West', 'Donald J. Trump', {'weight': 0.0113}),
('Allen West', 'Hillary Clinton', {'weight': 0.0001}),
('Mad World News', 'The Federalist Papers', {'weight': 0.0052}),
('Mad World News', 'U.S. Senator Bernie Sanders', {'weight': 0.0004}),
('Mad World News', '9GAG', {'weight': 0.0001}),
('Mad World News', 'AWM America', {'weight': 0.0071}),
('Mad World News', 'D.L. Hughley', {'weight': 0.0001}),
('Mad World News', 'NPR', {'weight': 0.0001}),
('Mad World News', 'ABC News', {'weight': 0.0007}),
('Mad World News', 'American News', {'weight': 0.0112}),
('Mad World News', 'Breitbart', {'weight': 0.0042}),
('Mad World News', 'The Other 98%', {'weight': 0.0002}),
('Mad World News', 'BuzzFeed', {'weight': 0.0001}),
('Mad World News', 'Fox News', {'weight': 0.0057}),
('Mad World News', 'CNN', {'weight': 0.0004}),
('Mad World News', 'Donald J. Trump', {'weight': 0.0036}),
('Mad World News', 'Hillary Clinton', {'weight': 0.0001}),
('U.S. Senator Bernie Sanders', 'The Federalist Papers', {'weight': 0.0004}),
('U.S. Senator Bernie Sanders', '9GAG', {'weight': 0.0012}),
('U.S. Senator Bernie Sanders', 'AWM America', {'weight': 0.001}),
('U.S. Senator Bernie Sanders', 'D.L. Hughley', {'weight': 0.0015}),
('U.S. Senator Bernie Sanders', 'NPR', {'weight': 0.007}),
('U.S. Senator Bernie Sanders', 'ABC News', {'weight': 0.0027}),
('U.S. Senator Bernie Sanders', 'American News', {'weight': 0.0012}),
('U.S. Senator Bernie Sanders', 'The Other 98%', {'weight': 0.0086}),
('U.S. Senator Bernie Sanders', 'Breitbart', {'weight': 0.0007}),
('U.S. Senator Bernie Sanders', 'BuzzFeed', {'weight': 0.0023}),
('U.S. Senator Bernie Sanders', 'Fox News', {'weight': 0.0013}),
('U.S. Senator Bernie Sanders', 'CNN', {'weight': 0.0042}),
('U.S. Senator Bernie Sanders', 'Donald J. Trump', {'weight': 0.0006}),
('U.S. Senator Bernie Sanders', 'Hillary Clinton', {'weight': 0.0058}),
('The Federalist Papers', '9GAG', {'weight': 0.0003}),
('The Federalist Papers', 'AWM America', {'weight': 0.0076}),
('The Federalist Papers', 'NPR', {'weight': 0.0002}),
('The Federalist Papers', 'D.L. Hughley', {'weight': 0.0001}),
('The Federalist Papers', 'ABC News', {'weight': 0.0015}),
('The Federalist Papers', 'American News', {'weight': 0.0111}),
('The Federalist Papers', 'Breitbart', {'weight': 0.0113}),
('The Federalist Papers', 'The Other 98%', {'weight': 0.0004}),
('The Federalist Papers', 'BuzzFeed', {'weight': 0.0001}),
('The Federalist Papers', 'Fox News', {'weight': 0.0135}),
('The Federalist Papers', 'Donald J. Trump', {'weight': 0.0082}),
('The Federalist Papers', 'CNN', {'weight': 0.0008}),
('The Federalist Papers', 'Hillary Clinton', {'weight': 0.0001}),
('9GAG', 'AWM America', {'weight': 0.0002}),
('9GAG', 'D.L. Hughley', {'weight': 0.0004}),
('9GAG', 'NPR', {'weight': 0.0006}),
('9GAG', 'ABC News', {'weight': 0.0013}),
('9GAG', 'American News', {'weight': 0.0003}),
('9GAG', 'The Other 98%', {'weight': 0.0026}),
('9GAG', 'Breitbart', {'weight': 0.0004}),
('9GAG', 'BuzzFeed', {'weight': 0.0038}),
('9GAG', 'Fox News', {'weight': 0.0009}),
('9GAG', 'CNN', {'weight': 0.0024}),
('9GAG', 'Donald J. Trump', {'weight': 0.0008}),
('9GAG', 'Hillary Clinton', {'weight': 0.0008}),
('AWM America', 'D.L. Hughley', {'weight': 0.0004}),
('AWM America', 'NPR', {'weight': 0.0004}),
('AWM America', 'ABC News', {'weight': 0.0025}),
('AWM America', 'American News', {'weight': 0.0203}),
('AWM America', 'Breitbart', {'weight': 0.0066}),
('AWM America', 'The Other 98%', {'weight': 0.0007}),
('AWM America', 'BuzzFeed', {'weight': 0.0003}),
('AWM America', 'Fox News', {'weight': 0.012}),
('AWM America', 'Donald J. Trump', {'weight': 0.0065}),
('AWM America', 'CNN', {'weight': 0.0011}),
('AWM America', 'Hillary Clinton', {'weight': 0.0004}),
('D.L. Hughley', 'NPR', {'weight': 0.0012}),
('D.L. Hughley', 'ABC News', {'weight': 0.0024}),
('D.L. Hughley', 'American News', {'weight': 0.0002}),
('D.L. Hughley', 'The Other 98%', {'weight': 0.0031}),
('D.L. Hughley', 'Breitbart', {'weight': 0.0}),
('D.L. Hughley', 'BuzzFeed', {'weight': 0.0007}),
('D.L. Hughley', 'Fox News', {'weight': 0.0004}),
('D.L. Hughley', 'CNN', {'weight': 0.0024}),
('D.L. Hughley', 'Donald J. Trump', {'weight': 0.0001}),
('D.L. Hughley', 'Hillary Clinton', {'weight': 0.0014}),
('NPR', 'American News', {'weight': 0.0003}),
('NPR', 'ABC News', {'weight': 0.0023}),
('NPR', 'The Other 98%', {'weight': 0.0063}),
('NPR', 'Breitbart', {'weight': 0.0002}),
('NPR', 'BuzzFeed', {'weight': 0.0038}),
('NPR', 'Fox News', {'weight': 0.0007}),
('NPR', 'CNN', {'weight': 0.0044}),
('NPR', 'Donald J. Trump', {'weight': 0.0002}),
('NPR', 'Hillary Clinton', {'weight': 0.0063}),
('American News', 'ABC News', {'weight': 0.003}),
('American News', 'Breitbart', {'weight': 0.0119}),
('American News', 'The Other 98%', {'weight': 0.0006}),
('American News', 'BuzzFeed', {'weight': 0.0001}),
('American News', 'Fox News', {'weight': 0.0194}),
('American News', 'Donald J. Trump', {'weight': 0.0107}),
('American News', 'CNN', {'weight': 0.0012}),
('American News', 'Hillary Clinton', {'weight': 0.0003}),
('ABC News', 'The Other 98%', {'weight': 0.0029}),
('ABC News', 'Breitbart', {'weight': 0.0019}),
('ABC News', 'BuzzFeed', {'weight': 0.0028}),
('ABC News', 'Fox News', {'weight': 0.0075}),
('ABC News', 'CNN', {'weight': 0.0068}),
('ABC News', 'Donald J. Trump', {'weight': 0.0033}),
('ABC News', 'Hillary Clinton', {'weight': 0.0031}),
('The Other 98%', 'Breitbart', {'weight': 0.0003}),
('The Other 98%', 'BuzzFeed', {'weight': 0.0046}),
('The Other 98%', 'Fox News', {'weight': 0.0013}),
('The Other 98%', 'CNN', {'weight': 0.0043}),
('The Other 98%', 'Donald J. Trump', {'weight': 0.0003}),
('The Other 98%', 'Hillary Clinton', {'weight': 0.0046}),
('Breitbart', 'BuzzFeed', {'weight': 0.0001}),
('Breitbart', 'Fox News', {'weight': 0.0188}),
('Breitbart', 'Donald J. Trump', {'weight': 0.0133}),
('Breitbart', 'CNN', {'weight': 0.0011}),
('Breitbart', 'Hillary Clinton', {'weight': 0.0002}),
('BuzzFeed', 'Fox News', {'weight': 0.0013}),
('BuzzFeed', 'CNN', {'weight': 0.0038}),
('BuzzFeed', 'Donald J. Trump', {'weight': 0.0006}),
('BuzzFeed', 'Hillary Clinton', {'weight': 0.0033}),
('Fox News', 'Donald J. Trump', {'weight': 0.0289}),
('Fox News', 'CNN', {'weight': 0.0055}),
('Fox News', 'Hillary Clinton', {'weight': 0.0008}),
('Donald J. Trump', 'CNN', {'weight': 0.0022}),
('Donald J. Trump', 'Hillary Clinton', {'weight': 0.0004}),
('CNN', 'Hillary Clinton', {'weight': 0.0063})]
# Calculate average weight
weight_sum = 0
node_sum = 0
average_weight = 0
for u, v, d in G_20160918.edges(data=True):
weight_sum += d['weight']
node_sum += 1
average_weight = weight_sum / node_sum
average_weight
0.0036050808314087713
elarge = [(u, v) for (u, v, d) in G_20160918.edges(data=True) if d["weight"] > average_weight ]
esmall = [(u, v) for (u, v, d) in G_20160918.edges(data=True) if d["weight"] <= average_weight ]
pos = nx.spring_layout(G_20160918, seed=7) # positions for all nodes - seed for reproducibility
# nodes
nx.draw_networkx_nodes(G_20160918, pos, node_size=60)
# edges
nx.draw_networkx_edges(G_20160918, pos, edgelist=elarge, width=2, edge_color="red")
nx.draw_networkx_edges(
G_20160918, pos, edgelist=esmall, width=0.5, alpha=0.5, edge_color="black", style="dashed"
)
# node labels
nx.draw_networkx_labels(G_20160918, pos, font_size=15, font_family="sans-serif")
# edge weight labels
edge_labels = nx.get_edge_attributes(G_20160918, "weight")
#nx.draw_networkx_edge_labels(G_20160918, pos, edge_labels, font_size=6, font_family="sans-serif")
ax = plt.gca()
ax.margins(0.001)
plt.axis("off")
plt.tight_layout()
plt.gcf().subplots_adjust(left=0)
plt.gcf().subplots_adjust(right=2)
plt.gcf().subplots_adjust(top=2)
plt.gcf().subplots_adjust(bottom=0)
plt.show()
#2016-09-25
# Load data and clean data
df_20160925 = df.drop(df[df['week_start_date']!='2016-09-25'].index)
df_20160925 = df_20160925.drop("week_start_date", axis='columns')
df_20160925.reset_index(drop=True, inplace=True)
df_20160925_add_page_info = df_20160925.merge(right=page_info, right_on='page_id', left_on='page_id')
## Find top x reaction_time Pages
df2_20160925 = df_20160925_add_page_info.groupby(by=['page_id']).sum().groupby(level=[0]).cumsum()
df2_20160925 = df2_20160925.sort_values(by='reaction_time', ascending=False)
df2_20160925 = df2_20160925.reset_index()
page_id_20160925 = df2_20160925.page_id.tolist()
## only analysis top x pages
df3_20160925_add_page_info = df_20160925_add_page_info[df_20160925_add_page_info.page_id.isin(page_id_20160925[0:30])]
df3_20160925_add_page_info.reset_index(drop=True, inplace=True)
# graph visualization
B_20160925 = nx_graph_from_pandas_edgelist(df3_20160925_add_page_info)
bottom_nodes, top_nodes = bipartite.sets(B_20160925)
# Project users' nodes on pages' node
G_20160925 = bipartite.weighted_projected_graph(B_20160925, list(top_nodes), ratio=True)
for u, v, d in G_20160925.edges(data=True):
d['weight'] = round(d['weight'], 4)
# Calculate average weight
weight_sum = 0
node_sum = 0
average_weight = 0
for u, v, d in G_20160925.edges(data=True):
weight_sum += d['weight']
node_sum += 1
average_weight = weight_sum / node_sum
elarge = [(u, v) for (u, v, d) in G_20160925.edges(data=True) if d["weight"] > average_weight ]
esmall = [(u, v) for (u, v, d) in G_20160925.edges(data=True) if d["weight"] <= average_weight ]
pos = nx.spring_layout(G_20160925, seed=7) # positions for all nodes - seed for reproducibility
# nodes
nx.draw_networkx_nodes(G_20160925, pos, node_size=60)
# edges
nx.draw_networkx_edges(G_20160925, pos, edgelist=elarge, width=2, edge_color="red")
nx.draw_networkx_edges(
G_20160925, pos, edgelist=esmall, width=0.5, alpha=0.5, edge_color="black", style="dashed"
)
# node labels
nx.draw_networkx_labels(G_20160925, pos, font_size=15, font_family="sans-serif")
# edge weight labels
edge_labels = nx.get_edge_attributes(G_20160925, "weight")
#nx.draw_networkx_edge_labels(G_20160925, pos, edge_labels, font_size=6, font_family="sans-serif")
ax = plt.gca()
ax.margins(0.001)
plt.axis("off")
plt.tight_layout()
plt.gcf().subplots_adjust(left=0)
plt.gcf().subplots_adjust(right=2)
plt.gcf().subplots_adjust(top=2)
plt.gcf().subplots_adjust(bottom=0)
plt.show()
for u, v, d in G_20160925.edges(data=True):
d['weight'] = round(d['weight'], 4)
list(G_20160925.edges(data=True))
[('Donald Trump For President', 'Allen West', {'weight': 0.0084}),
('Donald Trump For President', 'The Federalist Papers', {'weight': 0.007}),
('Donald Trump For President', '9GAG', {'weight': 0.0001}),
('Donald Trump For President', 'The LAD Bible', {'weight': 0.0005}),
('Donald Trump For President', 'AWM America', {'weight': 0.0087}),
('Donald Trump For President',
"Uncle Sam's Misguided Children",
{'weight': 0.0042}),
('Donald Trump For President', 'George Takei', {'weight': 0.0003}),
('Donald Trump For President', 'Bill Maher', {'weight': 0.0001}),
('Donald Trump For President', 'NPR', {'weight': 0.0}),
('Donald Trump For President', 'Being Liberal', {'weight': 0.0001}),
('Donald Trump For President', 'American News', {'weight': 0.01}),
('Donald Trump For President', 'Bernie Sanders', {'weight': 0.0001}),
('Donald Trump For President', 'Occupy Democrats', {'weight': 0.0004}),
('Donald Trump For President', 'Breitbart', {'weight': 0.0088}),
('Donald Trump For President', 'The Other 98%', {'weight': 0.0006}),
('Donald Trump For President', 'Nation In Distress', {'weight': 0.0109}),
('Donald Trump For President', 'NowThis', {'weight': 0.0003}),
('Donald Trump For President', 'Upworthy', {'weight': 0.0003}),
('Donald Trump For President', 'BuzzFeed', {'weight': 0.0002}),
('Donald Trump For President', 'The Huffington Post', {'weight': 0.0002}),
('Donald Trump For President', 'Fox News', {'weight': 0.0179}),
('Donald Trump For President', 'The Political Insider', {'weight': 0.0096}),
('Donald Trump For President', 'Donald J. Trump', {'weight': 0.018}),
('Donald Trump For President', 'The New York Times', {'weight': 0.0001}),
('Donald Trump For President', 'Right Wing News', {'weight': 0.0081}),
('Donald Trump For President', 'Faith Family America', {'weight': 0.0089}),
('Donald Trump For President', 'CNN', {'weight': 0.0006}),
('Donald Trump For President', 'Hillary Clinton', {'weight': 0.0001}),
('Donald Trump For President', 'Sean Hannity', {'weight': 0.0083}),
('The LAD Bible', 'Allen West', {'weight': 0.0009}),
('The LAD Bible', 'The Federalist Papers', {'weight': 0.0005}),
('The LAD Bible', '9GAG', {'weight': 0.0126}),
('The LAD Bible', 'AWM America', {'weight': 0.0016}),
('The LAD Bible', "Uncle Sam's Misguided Children", {'weight': 0.0015}),
('The LAD Bible', 'George Takei', {'weight': 0.0043}),
('The LAD Bible', 'Bill Maher', {'weight': 0.0016}),
('The LAD Bible', 'NPR', {'weight': 0.001}),
('The LAD Bible', 'Being Liberal', {'weight': 0.0007}),
('The LAD Bible', 'American News', {'weight': 0.0006}),
('The LAD Bible', 'Bernie Sanders', {'weight': 0.0029}),
('The LAD Bible', 'Occupy Democrats', {'weight': 0.0061}),
('The LAD Bible', 'The Other 98%', {'weight': 0.0053}),
('The LAD Bible', 'Breitbart', {'weight': 0.0007}),
('The LAD Bible', 'Nation In Distress', {'weight': 0.0005}),
('The LAD Bible', 'NowThis', {'weight': 0.0079}),
('The LAD Bible', 'Upworthy', {'weight': 0.0029}),
('The LAD Bible', 'BuzzFeed', {'weight': 0.0049}),
('The LAD Bible', 'The Huffington Post', {'weight': 0.0039}),
('The LAD Bible', 'Fox News', {'weight': 0.0025}),
('The LAD Bible', 'The Political Insider', {'weight': 0.0004}),
('The LAD Bible', 'Donald J. Trump', {'weight': 0.0018}),
('The LAD Bible', 'The New York Times', {'weight': 0.0018}),
('The LAD Bible', 'CNN', {'weight': 0.0036}),
('The LAD Bible', 'Faith Family America', {'weight': 0.0005}),
('The LAD Bible', 'Right Wing News', {'weight': 0.0007}),
('The LAD Bible', 'Hillary Clinton', {'weight': 0.0028}),
('The LAD Bible', 'Sean Hannity', {'weight': 0.0006}),
("Uncle Sam's Misguided Children", 'Allen West', {'weight': 0.0053}),
("Uncle Sam's Misguided Children",
'The Federalist Papers',
{'weight': 0.0041}),
("Uncle Sam's Misguided Children", '9GAG', {'weight': 0.0005}),
("Uncle Sam's Misguided Children", 'AWM America', {'weight': 0.0058}),
("Uncle Sam's Misguided Children", 'George Takei', {'weight': 0.0005}),
("Uncle Sam's Misguided Children", 'Bill Maher', {'weight': 0.0003}),
("Uncle Sam's Misguided Children", 'NPR', {'weight': 0.0002}),
("Uncle Sam's Misguided Children", 'Being Liberal', {'weight': 0.0001}),
("Uncle Sam's Misguided Children", 'American News', {'weight': 0.0038}),
("Uncle Sam's Misguided Children", 'Bernie Sanders', {'weight': 0.0001}),
("Uncle Sam's Misguided Children", 'Occupy Democrats', {'weight': 0.0015}),
("Uncle Sam's Misguided Children", 'Breitbart', {'weight': 0.0046}),
("Uncle Sam's Misguided Children", 'The Other 98%', {'weight': 0.001}),
("Uncle Sam's Misguided Children", 'Upworthy', {'weight': 0.0008}),
("Uncle Sam's Misguided Children", 'Nation In Distress', {'weight': 0.004}),
("Uncle Sam's Misguided Children", 'NowThis', {'weight': 0.001}),
("Uncle Sam's Misguided Children", 'BuzzFeed', {'weight': 0.0004}),
("Uncle Sam's Misguided Children", 'The Huffington Post', {'weight': 0.0003}),
("Uncle Sam's Misguided Children", 'Fox News', {'weight': 0.0096}),
("Uncle Sam's Misguided Children",
'The Political Insider',
{'weight': 0.0031}),
("Uncle Sam's Misguided Children", 'Donald J. Trump', {'weight': 0.0076}),
("Uncle Sam's Misguided Children", 'The New York Times', {'weight': 0.0002}),
("Uncle Sam's Misguided Children", 'CNN', {'weight': 0.0008}),
("Uncle Sam's Misguided Children",
'Faith Family America',
{'weight': 0.0037}),
("Uncle Sam's Misguided Children", 'Right Wing News', {'weight': 0.0046}),
("Uncle Sam's Misguided Children", 'Hillary Clinton', {'weight': 0.0003}),
("Uncle Sam's Misguided Children", 'Sean Hannity', {'weight': 0.003}),
('George Takei', 'Allen West', {'weight': 0.0007}),
('George Takei', 'The Federalist Papers', {'weight': 0.0004}),
('George Takei', '9GAG', {'weight': 0.0034}),
('George Takei', 'AWM America', {'weight': 0.0016}),
('George Takei', 'Bill Maher', {'weight': 0.0106}),
('George Takei', 'NPR', {'weight': 0.0099}),
('George Takei', 'Being Liberal', {'weight': 0.0072}),
('George Takei', 'American News', {'weight': 0.0004}),
('George Takei', 'Bernie Sanders', {'weight': 0.0081}),
('George Takei', 'Occupy Democrats', {'weight': 0.0161}),
('George Takei', 'The Other 98%', {'weight': 0.0129}),
('George Takei', 'Breitbart', {'weight': 0.0005}),
('George Takei', 'Upworthy', {'weight': 0.0077}),
('George Takei', 'NowThis', {'weight': 0.0037}),
('George Takei', 'Nation In Distress', {'weight': 0.0002}),
('George Takei', 'BuzzFeed', {'weight': 0.0088}),
('George Takei', 'The Huffington Post', {'weight': 0.016}),
('George Takei', 'Fox News', {'weight': 0.0018}),
('George Takei', 'The Political Insider', {'weight': 0.0002}),
('George Takei', 'CNN', {'weight': 0.0048}),
('George Takei', 'The New York Times', {'weight': 0.009}),
('George Takei', 'Donald J. Trump', {'weight': 0.0008}),
('George Takei', 'Faith Family America', {'weight': 0.0004}),
('George Takei', 'Right Wing News', {'weight': 0.0004}),
('George Takei', 'Hillary Clinton', {'weight': 0.0143}),
('George Takei', 'Sean Hannity', {'weight': 0.0003}),
('Bill Maher', 'Allen West', {'weight': 0.0002}),
('Bill Maher', 'The Federalist Papers', {'weight': 0.0001}),
('Bill Maher', '9GAG', {'weight': 0.0009}),
('Bill Maher', 'AWM America', {'weight': 0.001}),
('Bill Maher', 'NPR', {'weight': 0.0078}),
('Bill Maher', 'Being Liberal', {'weight': 0.0086}),
('Bill Maher', 'American News', {'weight': 0.0001}),
('Bill Maher', 'Bernie Sanders', {'weight': 0.0108}),
('Bill Maher', 'Occupy Democrats', {'weight': 0.023}),
('Bill Maher', 'The Other 98%', {'weight': 0.0128}),
('Bill Maher', 'Breitbart', {'weight': 0.0001}),
('Bill Maher', 'Upworthy', {'weight': 0.0048}),
('Bill Maher', 'NowThis', {'weight': 0.0029}),
('Bill Maher', 'Nation In Distress', {'weight': 0.0002}),
('Bill Maher', 'BuzzFeed', {'weight': 0.0055}),
('Bill Maher', 'The Huffington Post', {'weight': 0.0167}),
('Bill Maher', 'Fox News', {'weight': 0.0009}),
('Bill Maher', 'The Political Insider', {'weight': 0.0001}),
('Bill Maher', 'CNN', {'weight': 0.0064}),
('Bill Maher', 'The New York Times', {'weight': 0.0105}),
('Bill Maher', 'Donald J. Trump', {'weight': 0.0004}),
('Bill Maher', 'Faith Family America', {'weight': 0.0002}),
('Bill Maher', 'Right Wing News', {'weight': 0.0001}),
('Bill Maher', 'Hillary Clinton', {'weight': 0.02}),
('Bill Maher', 'Sean Hannity', {'weight': 0.0001}),
('Being Liberal', 'Allen West', {'weight': 0.0001}),
('Being Liberal', 'The Federalist Papers', {'weight': 0.0001}),
('Being Liberal', '9GAG', {'weight': 0.0003}),
('Being Liberal', 'AWM America', {'weight': 0.0006}),
('Being Liberal', 'NPR', {'weight': 0.0049}),
('Being Liberal', 'American News', {'weight': 0.0002}),
('Being Liberal', 'Bernie Sanders', {'weight': 0.0048}),
('Being Liberal', 'Occupy Democrats', {'weight': 0.0164}),
('Being Liberal', 'The Other 98%', {'weight': 0.0094}),
('Being Liberal', 'Breitbart', {'weight': 0.0001}),
('Being Liberal', 'NowThis', {'weight': 0.0013}),
('Being Liberal', 'Upworthy', {'weight': 0.0036}),
('Being Liberal', 'Nation In Distress', {'weight': 0.0001}),
('Being Liberal', 'BuzzFeed', {'weight': 0.0031}),
('Being Liberal', 'The Huffington Post', {'weight': 0.0094}),
('Being Liberal', 'Fox News', {'weight': 0.0003}),
('Being Liberal', 'The Political Insider', {'weight': 0.0001}),
('Being Liberal', 'CNN', {'weight': 0.0027}),
('Being Liberal', 'The New York Times', {'weight': 0.0053}),
('Being Liberal', 'Right Wing News', {'weight': 0.0001}),
('Being Liberal', 'Faith Family America', {'weight': 0.0002}),
('Being Liberal', 'Donald J. Trump', {'weight': 0.0001}),
('Being Liberal', 'Hillary Clinton', {'weight': 0.0109}),
('Being Liberal', 'Sean Hannity', {'weight': 0.0}),
('Occupy Democrats', 'Allen West', {'weight': 0.0006}),
('Occupy Democrats', 'The Federalist Papers', {'weight': 0.0004}),
('Occupy Democrats', '9GAG', {'weight': 0.0026}),
('Occupy Democrats', 'AWM America', {'weight': 0.0042}),
('Occupy Democrats', 'NPR', {'weight': 0.0103}),
('Occupy Democrats', 'American News', {'weight': 0.001}),
('Occupy Democrats', 'Bernie Sanders', {'weight': 0.0157}),
('Occupy Democrats', 'The Other 98%', {'weight': 0.029}),
('Occupy Democrats', 'Breitbart', {'weight': 0.0006}),
('Occupy Democrats', 'Upworthy', {'weight': 0.0104}),
('Occupy Democrats', 'NowThis', {'weight': 0.01}),
('Occupy Democrats', 'Nation In Distress', {'weight': 0.0009}),
('Occupy Democrats', 'BuzzFeed', {'weight': 0.0093}),
('Occupy Democrats', 'The Huffington Post', {'weight': 0.0257}),
('Occupy Democrats', 'Fox News', {'weight': 0.0028}),
('Occupy Democrats', 'The Political Insider', {'weight': 0.0005}),
('Occupy Democrats', 'CNN', {'weight': 0.0136}),
('Occupy Democrats', 'The New York Times', {'weight': 0.0144}),
('Occupy Democrats', 'Donald J. Trump', {'weight': 0.001}),
('Occupy Democrats', 'Faith Family America', {'weight': 0.0015}),
('Occupy Democrats', 'Right Wing News', {'weight': 0.0005}),
('Occupy Democrats', 'Hillary Clinton', {'weight': 0.036}),
('Occupy Democrats', 'Sean Hannity', {'weight': 0.0005}),
('Upworthy', 'Allen West', {'weight': 0.0006}),
('Upworthy', 'The Federalist Papers', {'weight': 0.0005}),
('Upworthy', '9GAG', {'weight': 0.0013}),
('Upworthy', 'AWM America', {'weight': 0.002}),
('Upworthy', 'NPR', {'weight': 0.0054}),
('Upworthy', 'American News', {'weight': 0.0007}),
('Upworthy', 'Bernie Sanders', {'weight': 0.0045}),
('Upworthy', 'The Other 98%', {'weight': 0.0063}),
('Upworthy', 'Breitbart', {'weight': 0.0004}),
('Upworthy', 'NowThis', {'weight': 0.005}),
('Upworthy', 'Nation In Distress', {'weight': 0.0004}),
('Upworthy', 'BuzzFeed', {'weight': 0.0051}),
('Upworthy', 'The Huffington Post', {'weight': 0.0092}),
('Upworthy', 'Fox News', {'weight': 0.0015}),
('Upworthy', 'The Political Insider', {'weight': 0.0006}),
('Upworthy', 'CNN', {'weight': 0.0036}),
('Upworthy', 'The New York Times', {'weight': 0.0049}),
('Upworthy', 'Donald J. Trump', {'weight': 0.0008}),
('Upworthy', 'Faith Family America', {'weight': 0.0007}),
('Upworthy', 'Right Wing News', {'weight': 0.0004}),
('Upworthy', 'Hillary Clinton', {'weight': 0.0065}),
('Upworthy', 'Sean Hannity', {'weight': 0.0004}),
('NowThis', 'Allen West', {'weight': 0.0008}),
('NowThis', 'The Federalist Papers', {'weight': 0.0004}),
('NowThis', '9GAG', {'weight': 0.0044}),
('NowThis', 'AWM America', {'weight': 0.0018}),
('NowThis', 'NPR', {'weight': 0.0019}),
('NowThis', 'American News', {'weight': 0.0006}),
('NowThis', 'Bernie Sanders', {'weight': 0.0042}),
('NowThis', 'The Other 98%', {'weight': 0.0069}),
('NowThis', 'Breitbart', {'weight': 0.0004}),
('NowThis', 'Nation In Distress', {'weight': 0.0003}),
('NowThis', 'BuzzFeed', {'weight': 0.0054}),
('NowThis', 'The Huffington Post', {'weight': 0.0062}),
('NowThis', 'Fox News', {'weight': 0.0022}),
('NowThis', 'The Political Insider', {'weight': 0.0005}),
('NowThis', 'CNN', {'weight': 0.0055}),
('NowThis', 'The New York Times', {'weight': 0.0027}),
('NowThis', 'Donald J. Trump', {'weight': 0.0011}),
('NowThis', 'Faith Family America', {'weight': 0.0004}),
('NowThis', 'Right Wing News', {'weight': 0.0006}),
('NowThis', 'Hillary Clinton', {'weight': 0.0056}),
('NowThis', 'Sean Hannity', {'weight': 0.0004}),
('Nation In Distress', 'Allen West', {'weight': 0.006}),
('Nation In Distress', 'The Federalist Papers', {'weight': 0.0063}),
('Nation In Distress', '9GAG', {'weight': 0.0002}),
('Nation In Distress', 'AWM America', {'weight': 0.009}),
('Nation In Distress', 'NPR', {'weight': 0.0}),
('Nation In Distress', 'American News', {'weight': 0.0101}),
('Nation In Distress', 'Bernie Sanders', {'weight': 0.0002}),
('Nation In Distress', 'The Other 98%', {'weight': 0.0006}),
('Nation In Distress', 'Breitbart', {'weight': 0.0059}),
('Nation In Distress', 'BuzzFeed', {'weight': 0.0002}),
('Nation In Distress', 'The Huffington Post', {'weight': 0.0002}),
('Nation In Distress', 'Fox News', {'weight': 0.0097}),
('Nation In Distress', 'The Political Insider', {'weight': 0.0089}),
('Nation In Distress', 'Donald J. Trump', {'weight': 0.008}),
('Nation In Distress', 'The New York Times', {'weight': 0.0001}),
('Nation In Distress', 'Right Wing News', {'weight': 0.0071}),
('Nation In Distress', 'Faith Family America', {'weight': 0.0086}),
('Nation In Distress', 'CNN', {'weight': 0.0003}),
('Nation In Distress', 'Hillary Clinton', {'weight': 0.0002}),
('Nation In Distress', 'Sean Hannity', {'weight': 0.0046}),
('The Huffington Post', 'Allen West', {'weight': 0.0004}),
('The Huffington Post', 'The Federalist Papers', {'weight': 0.0002}),
('The Huffington Post', '9GAG', {'weight': 0.0026}),
('The Huffington Post', 'AWM America', {'weight': 0.0014}),
('The Huffington Post', 'NPR', {'weight': 0.0138}),
('The Huffington Post', 'American News', {'weight': 0.0003}),
('The Huffington Post', 'Bernie Sanders', {'weight': 0.0116}),
('The Huffington Post', 'The Other 98%', {'weight': 0.0166}),
('The Huffington Post', 'Breitbart', {'weight': 0.0002}),
('The Huffington Post', 'BuzzFeed', {'weight': 0.0127}),
('The Huffington Post', 'Fox News', {'weight': 0.0018}),
('The Huffington Post', 'The Political Insider', {'weight': 0.0003}),
('The Huffington Post', 'CNN', {'weight': 0.0092}),
('The Huffington Post', 'The New York Times', {'weight': 0.0173}),
('The Huffington Post', 'Donald J. Trump', {'weight': 0.0006}),
('The Huffington Post', 'Faith Family America', {'weight': 0.0003}),
('The Huffington Post', 'Right Wing News', {'weight': 0.0002}),
('The Huffington Post', 'Hillary Clinton', {'weight': 0.0256}),
('The Huffington Post', 'Sean Hannity', {'weight': 0.0002}),
('The Political Insider', 'Allen West', {'weight': 0.0072}),
('The Political Insider', 'The Federalist Papers', {'weight': 0.0077}),
('The Political Insider', '9GAG', {'weight': 0.0001}),
('The Political Insider', 'AWM America', {'weight': 0.0112}),
('The Political Insider', 'NPR', {'weight': 0.0}),
('The Political Insider', 'American News', {'weight': 0.0121}),
('The Political Insider', 'Bernie Sanders', {'weight': 0.0001}),
('The Political Insider', 'Breitbart', {'weight': 0.0069}),
('The Political Insider', 'The Other 98%', {'weight': 0.0003}),
('The Political Insider', 'BuzzFeed', {'weight': 0.0002}),
('The Political Insider', 'Fox News', {'weight': 0.0116}),
('The Political Insider', 'Right Wing News', {'weight': 0.0092}),
('The Political Insider', 'The New York Times', {'weight': 0.0001}),
('The Political Insider', 'Donald J. Trump', {'weight': 0.0088}),
('The Political Insider', 'Faith Family America', {'weight': 0.0093}),
('The Political Insider', 'CNN', {'weight': 0.0005}),
('The Political Insider', 'Hillary Clinton', {'weight': 0.0001}),
('The Political Insider', 'Sean Hannity', {'weight': 0.006}),
('The New York Times', 'Allen West', {'weight': 0.0001}),
('The New York Times', 'The Federalist Papers', {'weight': 0.0001}),
('The New York Times', '9GAG', {'weight': 0.0011}),
('The New York Times', 'AWM America', {'weight': 0.0006}),
('The New York Times', 'NPR', {'weight': 0.0118}),
('The New York Times', 'American News', {'weight': 0.0002}),
('The New York Times', 'Bernie Sanders', {'weight': 0.0076}),
('The New York Times', 'The Other 98%', {'weight': 0.0079}),
('The New York Times', 'Breitbart', {'weight': 0.0002}),
('The New York Times', 'BuzzFeed', {'weight': 0.007}),
('The New York Times', 'Fox News', {'weight': 0.0011}),
('The New York Times', 'CNN', {'weight': 0.0072}),
('The New York Times', 'Donald J. Trump', {'weight': 0.0005}),
('The New York Times', 'Faith Family America', {'weight': 0.0002}),
('The New York Times', 'Right Wing News', {'weight': 0.0001}),
('The New York Times', 'Hillary Clinton', {'weight': 0.0213}),
('The New York Times', 'Sean Hannity', {'weight': 0.0001}),
('Faith Family America', 'Allen West', {'weight': 0.0074}),
('Faith Family America', 'The Federalist Papers', {'weight': 0.0086}),
('Faith Family America', '9GAG', {'weight': 0.0001}),
('Faith Family America', 'AWM America', {'weight': 0.0134}),
('Faith Family America', 'NPR', {'weight': 0.0001}),
('Faith Family America', 'American News', {'weight': 0.0126}),
('Faith Family America', 'Bernie Sanders', {'weight': 0.0001}),
('Faith Family America', 'Breitbart', {'weight': 0.0064}),
('Faith Family America', 'The Other 98%', {'weight': 0.0008}),
('Faith Family America', 'BuzzFeed', {'weight': 0.0003}),
('Faith Family America', 'Fox News', {'weight': 0.0138}),
('Faith Family America', 'Donald J. Trump', {'weight': 0.0088}),
('Faith Family America', 'Right Wing News', {'weight': 0.0074}),
('Faith Family America', 'CNN', {'weight': 0.0005}),
('Faith Family America', 'Hillary Clinton', {'weight': 0.0005}),
('Faith Family America', 'Sean Hannity', {'weight': 0.0058}),
('Sean Hannity', 'Allen West', {'weight': 0.0108}),
('Sean Hannity', 'The Federalist Papers', {'weight': 0.0062}),
('Sean Hannity', '9GAG', {'weight': 0.0002}),
('Sean Hannity', 'AWM America', {'weight': 0.0057}),
('Sean Hannity', 'NPR', {'weight': 0.0002}),
('Sean Hannity', 'American News', {'weight': 0.0057}),
('Sean Hannity', 'Bernie Sanders', {'weight': 0.0001}),
('Sean Hannity', 'Breitbart', {'weight': 0.0093}),
('Sean Hannity', 'The Other 98%', {'weight': 0.0003}),
('Sean Hannity', 'BuzzFeed', {'weight': 0.0002}),
('Sean Hannity', 'Fox News', {'weight': 0.02}),
('Sean Hannity', 'Donald J. Trump', {'weight': 0.0158}),
('Sean Hannity', 'Right Wing News', {'weight': 0.0054}),
('Sean Hannity', 'CNN', {'weight': 0.0007}),
('Sean Hannity', 'Hillary Clinton', {'weight': 0.0002}),
('Allen West', 'The Federalist Papers', {'weight': 0.0099}),
('Allen West', '9GAG', {'weight': 0.0002}),
('Allen West', 'AWM America', {'weight': 0.0069}),
('Allen West', 'NPR', {'weight': 0.0002}),
('Allen West', 'American News', {'weight': 0.0075}),
('Allen West', 'Bernie Sanders', {'weight': 0.0001}),
('Allen West', 'Breitbart', {'weight': 0.0114}),
('Allen West', 'The Other 98%', {'weight': 0.0008}),
('Allen West', 'BuzzFeed', {'weight': 0.0005}),
('Allen West', 'Fox News', {'weight': 0.0207}),
('Allen West', 'Right Wing News', {'weight': 0.0081}),
('Allen West', 'Donald J. Trump', {'weight': 0.0147}),
('Allen West', 'CNN', {'weight': 0.0007}),
('Allen West', 'Hillary Clinton', {'weight': 0.0001}),
('The Federalist Papers', '9GAG', {'weight': 0.0002}),
('The Federalist Papers', 'AWM America', {'weight': 0.0079}),
('The Federalist Papers', 'NPR', {'weight': 0.0002}),
('The Federalist Papers', 'American News', {'weight': 0.0084}),
('The Federalist Papers', 'Bernie Sanders', {'weight': 0.0001}),
('The Federalist Papers', 'Breitbart', {'weight': 0.0093}),
('The Federalist Papers', 'The Other 98%', {'weight': 0.0007}),
('The Federalist Papers', 'BuzzFeed', {'weight': 0.0002}),
('The Federalist Papers', 'Fox News', {'weight': 0.0132}),
('The Federalist Papers', 'Donald J. Trump', {'weight': 0.0091}),
('The Federalist Papers', 'Right Wing News', {'weight': 0.0084}),
('The Federalist Papers', 'CNN', {'weight': 0.0003}),
('The Federalist Papers', 'Hillary Clinton', {'weight': 0.0001}),
('9GAG', 'AWM America', {'weight': 0.0002}),
('9GAG', 'NPR', {'weight': 0.0005}),
('9GAG', 'American News', {'weight': 0.0001}),
('9GAG', 'Bernie Sanders', {'weight': 0.002}),
('9GAG', 'The Other 98%', {'weight': 0.0036}),
('9GAG', 'Breitbart', {'weight': 0.0003}),
('9GAG', 'BuzzFeed', {'weight': 0.004}),
('9GAG', 'Fox News', {'weight': 0.0011}),
('9GAG', 'Donald J. Trump', {'weight': 0.0011}),
('9GAG', 'CNN', {'weight': 0.002}),
('9GAG', 'Right Wing News', {'weight': 0.0003}),
('9GAG', 'Hillary Clinton', {'weight': 0.0019}),
('AWM America', 'NPR', {'weight': 0.0005}),
('AWM America', 'American News', {'weight': 0.0159}),
('AWM America', 'Bernie Sanders', {'weight': 0.0004}),
('AWM America', 'Breitbart', {'weight': 0.007}),
('AWM America', 'The Other 98%', {'weight': 0.0019}),
('AWM America', 'BuzzFeed', {'weight': 0.0006}),
('AWM America', 'Fox News', {'weight': 0.0148}),
('AWM America', 'Donald J. Trump', {'weight': 0.0093}),
('AWM America', 'Right Wing News', {'weight': 0.0082}),
('AWM America', 'CNN', {'weight': 0.0013}),
('AWM America', 'Hillary Clinton', {'weight': 0.0018}),
('NPR', 'American News', {'weight': 0.0001}),
('NPR', 'Bernie Sanders', {'weight': 0.0061}),
('NPR', 'The Other 98%', {'weight': 0.0074}),
('NPR', 'Breitbart', {'weight': 0.0001}),
('NPR', 'BuzzFeed', {'weight': 0.0051}),
('NPR', 'Fox News', {'weight': 0.0006}),
('NPR', 'CNN', {'weight': 0.0045}),
('NPR', 'Donald J. Trump', {'weight': 0.0003}),
('NPR', 'Right Wing News', {'weight': 0.0001}),
('NPR', 'Hillary Clinton', {'weight': 0.0136}),
('American News', 'Bernie Sanders', {'weight': 0.0002}),
('American News', 'Breitbart', {'weight': 0.0078}),
('American News', 'The Other 98%', {'weight': 0.0005}),
('American News', 'BuzzFeed', {'weight': 0.0002}),
('American News', 'Fox News', {'weight': 0.0136}),
('American News', 'Donald J. Trump', {'weight': 0.0091}),
('American News', 'Right Wing News', {'weight': 0.0097}),
('American News', 'CNN', {'weight': 0.0004}),
('American News', 'Hillary Clinton', {'weight': 0.0003}),
('Bernie Sanders', 'The Other 98%', {'weight': 0.0108}),
('Bernie Sanders', 'Breitbart', {'weight': 0.0001}),
('Bernie Sanders', 'BuzzFeed', {'weight': 0.0061}),
('Bernie Sanders', 'Fox News', {'weight': 0.0008}),
('Bernie Sanders', 'CNN', {'weight': 0.0052}),
('Bernie Sanders', 'Donald J. Trump', {'weight': 0.0003}),
('Bernie Sanders', 'Right Wing News', {'weight': 0.0001}),
('Bernie Sanders', 'Hillary Clinton', {'weight': 0.0138}),
('The Other 98%', 'Breitbart', {'weight': 0.0005}),
('The Other 98%', 'BuzzFeed', {'weight': 0.0083}),
('The Other 98%', 'Fox News', {'weight': 0.002}),
('The Other 98%', 'CNN', {'weight': 0.0064}),
('The Other 98%', 'Donald J. Trump', {'weight': 0.001}),
('The Other 98%', 'Right Wing News', {'weight': 0.0005}),
('The Other 98%', 'Hillary Clinton', {'weight': 0.015}),
('Breitbart', 'BuzzFeed', {'weight': 0.0003}),
('Breitbart', 'Fox News', {'weight': 0.0179}),
('Breitbart', 'Donald J. Trump', {'weight': 0.0148}),
('Breitbart', 'Right Wing News', {'weight': 0.0076}),
('Breitbart', 'CNN', {'weight': 0.0006}),
('Breitbart', 'Hillary Clinton', {'weight': 0.0002}),
('BuzzFeed', 'Fox News', {'weight': 0.0018}),
('BuzzFeed', 'CNN', {'weight': 0.0044}),
('BuzzFeed', 'Right Wing News', {'weight': 0.0004}),
('BuzzFeed', 'Donald J. Trump', {'weight': 0.0007}),
('BuzzFeed', 'Hillary Clinton', {'weight': 0.0093}),
('Fox News', 'Donald J. Trump', {'weight': 0.0394}),
('Fox News', 'Right Wing News', {'weight': 0.0134}),
('Fox News', 'CNN', {'weight': 0.0038}),
('Fox News', 'Hillary Clinton', {'weight': 0.0017}),
('Donald J. Trump', 'Right Wing News', {'weight': 0.0097}),
('Donald J. Trump', 'CNN', {'weight': 0.0022}),
('Donald J. Trump', 'Hillary Clinton', {'weight': 0.0009}),
('CNN', 'Right Wing News', {'weight': 0.0004}),
('CNN', 'Hillary Clinton', {'weight': 0.0125}),
('Right Wing News', 'Hillary Clinton', {'weight': 0.0001})]
# Find top x reaction_time Pages
df2_20160925 = df_20160925.groupby(by=['page_id']).sum().groupby(level=[0]).cumsum()
df2_20160925 = df2_20160925.sort_values(by='reaction_time', ascending=False)
df2_20160925 = df2_20160925.drop("user_id", axis='columns')
df2_20160925_add_page_info = df2_20160925.merge(right=page_info, right_on='page_id', left_on='page_id')
df2_20160925_add_page_info = df2_20160925_add_page_info.reset_index()
df2_20160925_add_page_info.head(30)
| index | page_id | reaction_time | page_name | category | type | type_sub | type_issue | fan_count | talking_about_count | page_url | total_like | total_comment | total_share | 1:07:14 | rank_1:7:14 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 0 | 346937065399354 | 36650.0 | Occupy Democrats | Political Organization | group | NaN | NaN | 3900088 | 10721362 | https://www.facebook.com/OccupyDemocrats | 792155 | 74491 | 798849 | 1249747.8 | 3 |
| 1 | 1 | 15704546335 | 26754.0 | Fox News | Media/News/Publishing | media | tv | NaN | 13329520 | 3825122 | https://www.facebook.com/FoxNews | 4480553 | 2117810 | 1865659 | 4542444.9 | 1 |
| 2 | 2 | 153080620724 | 23879.0 | Donald J. Trump | Public Figure | figure | politician | NaN | 10801785 | 1722696 | https://www.facebook.com/DonaldTrump | 4463122 | 486152 | 551204 | 1558304.2 | 2 |
| 3 | 3 | 889307941125736 | 21235.0 | Hillary Clinton | Politician | figure | politician | NaN | 6159021 | 2269940 | https://www.facebook.com/hillaryclinton | 2042363 | 461294 | 349858 | 1016943.3 | 5 |
| 4 | 4 | 18468761129 | 15244.0 | The Huffington Post | Media/News/Publishing | media | website | NaN | 8200138 | 2338598 | https://www.facebook.com/HuffingtonPost | 1025157 | 89556 | 412304 | 742430.5 | 8 |
| 5 | 5 | 21785951839 | 14219.0 | 9GAG | App Page | others | NaN | NaN | 32155423 | 11547502 | https://www.facebook.com/9gag | 13909 | 725 | 1555 | 4075.4 | 760 |
| 6 | 6 | 114517875225866 | 11853.0 | The Other 98% | Organization | group | NaN | inequality | 3088088 | 5241170 | https://www.facebook.com/TheOther98 | 99948 | 9665 | 134243 | 204700.5 | 50 |
| 7 | 7 | 205344452828349 | 10776.0 | George Takei | Actor/Director | figure | journalist | NaN | 9856263 | 2527229 | https://www.facebook.com/georgehtakei | 10717 | 2273 | 596 | 3497.2 | 822 |
| 8 | 8 | 62507427296 | 10344.0 | Bill Maher | Public Figure | figure | journalist | NaN | 3476448 | 332816 | https://www.facebook.com/Maher | 97132 | 23140 | 9755 | 39568.2 | 208 |
| 9 | 9 | 95475020353 | 10218.0 | Breitbart | Media/News/Publishing | media | website | NaN | 2445780 | 1180481 | https://www.facebook.com/Breitbart | 1132039 | 313784 | 552679 | 1106603.3 | 4 |
| 10 | 10 | 133961323610549 | 10163.0 | Donald Trump For President | Politician | figure | politician | NaN | 1633254 | 1437603 | https://www.facebook.com/DonaldTrump4President | 168286 | 36829 | 75417 | 148192.7 | 67 |
| 11 | 11 | 226821494115353 | 9993.0 | Nation In Distress | Media/News/Publishing | media | website | NaN | 1649087 | 3154824 | https://www.facebook.com/NationInDistress | 20822 | 3478 | 7454 | 14952.4 | 370 |
| 12 | 12 | 199098633470668 | 9519.0 | The LAD Bible | Media/News/Publishing | media | website | NaN | 16164893 | 18579204 | https://www.facebook.com/LADbible | 46478 | 9710 | 9196 | 24319.2 | 259 |
| 13 | 13 | 22067606728 | 8506.0 | Allen West | Public Figure | figure | politician | NaN | 2436623 | 1552544 | https://www.facebook.com/AllenBWest | 17445 | 750 | 7716 | 13071.9 | 403 |
| 14 | 14 | 21898300328 | 8210.0 | BuzzFeed | Media/News/Publishing | media | website | NaN | 8297094 | 2953846 | https://www.facebook.com/BuzzFeed | 49504 | 9953 | 22182 | 42972.3 | 191 |
| 15 | 15 | 184859785026060 | 7811.0 | Faith Family America | Media/News/Publishing | media | website | NaN | 3537582 | 1312529 | https://www.facebook.com/faithfamilyamerica | 53742 | 15053 | 29102 | 56654.1 | 163 |
| 16 | 16 | 179035672287016 | 7602.0 | American News | Media/News/Publishing | media | website | NaN | 5368155 | 1672285 | https://www.facebook.com/ThePatriotReview | 538521 | 51804 | 182386 | 345455.3 | 27 |
| 17 | 17 | 107705785934333 | 7337.0 | The Federalist Papers | Media/News/Publishing | media | website | NaN | 2175186 | 1271961 | https://www.facebook.com/TheFederalistPapers | 329771 | 54575 | 199279 | 350170.2 | 26 |
| 18 | 18 | 5281959998 | 7216.0 | The New York Times | Media/News/Publishing | media | newspaper | NaN | 11959098 | 1196413 | https://www.facebook.com/nytimes | 529705 | 101940 | 133194 | 310800.1 | 33 |
| 19 | 19 | 339226922847416 | 7133.0 | AWM America | News/Media Website | media | website | NaN | 6161533 | 1876242 | https://www.facebook.com/AWMAmerica | 19351 | 5165 | 4352 | 11643.4 | 434 |
| 20 | 20 | 5550296508 | 6689.0 | CNN | Media/News/Publishing | media | tv | NaN | 23414282 | 3217462 | https://www.facebook.com/cnn | 617880 | 289587 | 160728 | 489518.1 | 16 |
| 21 | 21 | 69813760388 | 6645.0 | Sean Hannity | Public Figure | figure | journalist | NaN | 2460455 | 620133 | https://www.facebook.com/SeanHannity | 797223 | 127169 | 311126 | 604317.0 | 11 |
| 22 | 22 | 10643211755 | 6505.0 | NPR | Non-Profit Organization | media | radio | NaN | 5132848 | 1151976 | https://www.facebook.com/NPR | 207136 | 45354 | 65668 | 144396.6 | 70 |
| 23 | 23 | 389658314427637 | 6342.0 | Right Wing News | Media/News/Publishing | media | website | NaN | 3359206 | 1527994 | https://www.facebook.com/OfficialRightWingNews | 191206 | 25193 | 71134 | 136343.3 | 74 |
| 24 | 24 | 177486166274 | 6213.0 | Being Liberal | Media/News/Publishing | media | website | NaN | 1499325 | 803868 | https://www.facebook.com/beingliberal.org | 367306 | 34054 | 130558 | 243349.6 | 40 |
| 25 | 25 | 169676909894983 | 6029.0 | Uncle Sam's Misguided Children | Website | media | website | NaN | 1228559 | 2798671 | https://www.facebook.com/UncleSamsMisguidedChi... | 8601 | 2853 | 8844 | 15238.8 | 359 |
| 26 | 26 | 341163402640457 | 5978.0 | NowThis | News/Media Website | media | website | NaN | 7743317 | 10964723 | https://www.facebook.com/NowThisNews | 147450 | 17401 | 4662 | 33452.5 | 222 |
| 27 | 27 | 112723252096438 | 5759.0 | The Political Insider | News/Media Website | media | website | NaN | 2598529 | 1004533 | https://www.facebook.com/ThePoliticalInsider | 227963 | 33948 | 87747 | 169405.7 | 60 |
| 28 | 28 | 124955570892789 | 5286.0 | Bernie Sanders | Politician | figure | politician | NaN | 4455949 | 195603 | https://www.facebook.com/berniesanders | 173403 | 24948 | 41328 | 92663.1 | 105 |
| 29 | 29 | 354522044588660 | 5094.0 | Upworthy | Media/News/Publishing | media | website | NaN | 10028666 | 3138601 | https://www.facebook.com/Upworthy | 34369 | 1443 | 7292 | 14655.8 | 375 |
#2016-10-02
# Load data and clean data
df_20161002 = df.drop(df[df['week_start_date']!='2016-10-02'].index)
df_20161002 = df_20161002.drop("week_start_date", axis='columns')
df_20161002.reset_index(drop=True, inplace=True)
df_20161002_add_page_info = df_20161002.merge(right=page_info, right_on='page_id', left_on='page_id')
## Find top x reaction_time Pages
df2_20161002 = df_20161002_add_page_info.groupby(by=['page_id']).sum().groupby(level=[0]).cumsum()
df2_20161002 = df2_20161002.sort_values(by='reaction_time', ascending=False)
df2_20161002 = df2_20161002.reset_index()
page_id_20161002 = df2_20161002.page_id.tolist()
## only analysis top x pages
df3_20161002_add_page_info = df_20161002_add_page_info[df_20161002_add_page_info.page_id.isin(page_id_20161002[0:30])]
df3_20161002_add_page_info.reset_index(drop=True, inplace=True)
# graph visualization
B_20161002 = nx_graph_from_pandas_edgelist(df3_20161002_add_page_info)
bottom_nodes, top_nodes = bipartite.sets(B_20161002)
# Project users' nodes on pages' node
G_20161002 = bipartite.weighted_projected_graph(B_20161002, list(top_nodes), ratio=True)
for u, v, d in G_20161002.edges(data=True):
d['weight'] = round(d['weight'], 4)
# Calculate average weight
weight_sum = 0
node_sum = 0
average_weight = 0
for u, v, d in G_20161002.edges(data=True):
weight_sum += d['weight']
node_sum += 1
average_weight = weight_sum / node_sum
elarge = [(u, v) for (u, v, d) in G_20161002.edges(data=True) if d["weight"] > average_weight ]
esmall = [(u, v) for (u, v, d) in G_20161002.edges(data=True) if d["weight"] <= average_weight ]
pos = nx.spring_layout(G_20161002, seed=7) # positions for all nodes - seed for reproducibility
# nodes
nx.draw_networkx_nodes(G_20161002, pos, node_size=60)
# edges
nx.draw_networkx_edges(G_20161002, pos, edgelist=elarge, width=2, edge_color="red")
nx.draw_networkx_edges(
G_20161002, pos, edgelist=esmall, width=0.5, alpha=0.5, edge_color="black", style="dashed"
)
# node labels
nx.draw_networkx_labels(G_20161002, pos, font_size=15, font_family="sans-serif")
# edge weight labels
edge_labels = nx.get_edge_attributes(G_20161002, "weight")
#nx.draw_networkx_edge_labels(G_20161002, pos, edge_labels, font_size=6, font_family="sans-serif")
ax = plt.gca()
ax.margins(0.001)
plt.axis("off")
plt.tight_layout()
plt.gcf().subplots_adjust(left=0)
plt.gcf().subplots_adjust(right=2)
plt.gcf().subplots_adjust(top=2)
plt.gcf().subplots_adjust(bottom=0)
plt.show()
for u, v, d in G_20161002.edges(data=True):
d['weight'] = round(d['weight'], 4)
list(G_20161002.edges(data=True))
[('Dr. Ben Carson', 'Allen West', {'weight': 0.0121}),
('Dr. Ben Carson', 'The Federalist Papers', {'weight': 0.0066}),
('Dr. Ben Carson', 'U.S. Senator Bernie Sanders', {'weight': 0.0002}),
('Dr. Ben Carson', 'Donald Trump For President', {'weight': 0.0095}),
('Dr. Ben Carson', '9GAG', {'weight': 0.0004}),
('Dr. Ben Carson', 'The LAD Bible', {'weight': 0.0007}),
('Dr. Ben Carson', 'AWM America', {'weight': 0.0067}),
('Dr. Ben Carson', 'Franklin Graham', {'weight': 0.016}),
('Dr. Ben Carson', "Uncle Sam's Misguided Children", {'weight': 0.0038}),
('Dr. Ben Carson', 'George Takei', {'weight': 0.0007}),
('Dr. Ben Carson', 'NPR', {'weight': 0.0002}),
('Dr. Ben Carson', 'Being Liberal', {'weight': 0.0001}),
('Dr. Ben Carson', 'American News', {'weight': 0.007}),
('Dr. Ben Carson', 'ABC News', {'weight': 0.0024}),
('Dr. Ben Carson', 'Occupy Democrats', {'weight': 0.0003}),
('Dr. Ben Carson', 'Breitbart', {'weight': 0.0111}),
('Dr. Ben Carson', 'The Other 98%', {'weight': 0.0003}),
('Dr. Ben Carson', 'Nation In Distress', {'weight': 0.0043}),
('Dr. Ben Carson', 'Upworthy', {'weight': 0.0007}),
('Dr. Ben Carson', 'NowThis', {'weight': 0.0006}),
('Dr. Ben Carson', 'BuzzFeed', {'weight': 0.0003}),
('Dr. Ben Carson', 'The Huffington Post', {'weight': 0.0004}),
('Dr. Ben Carson', 'Fox News', {'weight': 0.0221}),
('Dr. Ben Carson', 'The Political Insider', {'weight': 0.0055}),
('Dr. Ben Carson', 'Donald J. Trump', {'weight': 0.0228}),
('Dr. Ben Carson', 'Liberal Daily', {'weight': 0.0001}),
('Dr. Ben Carson', 'CNN', {'weight': 0.0012}),
('Dr. Ben Carson', 'Hillary Clinton', {'weight': 0.0001}),
('Dr. Ben Carson', 'Sean Hannity', {'weight': 0.0103}),
('Donald Trump For President', 'Allen West', {'weight': 0.0102}),
('Donald Trump For President', 'The Federalist Papers', {'weight': 0.0066}),
('Donald Trump For President',
'U.S. Senator Bernie Sanders',
{'weight': 0.0001}),
('Donald Trump For President', '9GAG', {'weight': 0.0003}),
('Donald Trump For President', 'The LAD Bible', {'weight': 0.0005}),
('Donald Trump For President', 'AWM America', {'weight': 0.009}),
('Donald Trump For President', 'Franklin Graham', {'weight': 0.0103}),
('Donald Trump For President',
"Uncle Sam's Misguided Children",
{'weight': 0.004}),
('Donald Trump For President', 'George Takei', {'weight': 0.0003}),
('Donald Trump For President', 'NPR', {'weight': 0.0}),
('Donald Trump For President', 'Being Liberal', {'weight': 0.0001}),
('Donald Trump For President', 'American News', {'weight': 0.0106}),
('Donald Trump For President', 'ABC News', {'weight': 0.0021}),
('Donald Trump For President', 'Occupy Democrats', {'weight': 0.0004}),
('Donald Trump For President', 'Breitbart', {'weight': 0.0131}),
('Donald Trump For President', 'The Other 98%', {'weight': 0.0004}),
('Donald Trump For President', 'Nation In Distress', {'weight': 0.0107}),
('Donald Trump For President', 'Upworthy', {'weight': 0.0004}),
('Donald Trump For President', 'NowThis', {'weight': 0.0007}),
('Donald Trump For President', 'BuzzFeed', {'weight': 0.0001}),
('Donald Trump For President', 'The Huffington Post', {'weight': 0.0002}),
('Donald Trump For President', 'Fox News', {'weight': 0.0192}),
('Donald Trump For President', 'The Political Insider', {'weight': 0.0091}),
('Donald Trump For President', 'Donald J. Trump', {'weight': 0.0244}),
('Donald Trump For President', 'Liberal Daily', {'weight': 0.0001}),
('Donald Trump For President', 'CNN', {'weight': 0.0011}),
('Donald Trump For President', 'Hillary Clinton', {'weight': 0.0002}),
('Donald Trump For President', 'Sean Hannity', {'weight': 0.0095}),
('The LAD Bible', 'Allen West', {'weight': 0.0007}),
('The LAD Bible', 'The Federalist Papers', {'weight': 0.0004}),
('The LAD Bible', 'U.S. Senator Bernie Sanders', {'weight': 0.0011}),
('The LAD Bible', '9GAG', {'weight': 0.0143}),
('The LAD Bible', 'AWM America', {'weight': 0.0006}),
('The LAD Bible', 'Franklin Graham', {'weight': 0.0003}),
('The LAD Bible', "Uncle Sam's Misguided Children", {'weight': 0.0009}),
('The LAD Bible', 'George Takei', {'weight': 0.0039}),
('The LAD Bible', 'NPR', {'weight': 0.0006}),
('The LAD Bible', 'Being Liberal', {'weight': 0.0005}),
('The LAD Bible', 'American News', {'weight': 0.0004}),
('The LAD Bible', 'ABC News', {'weight': 0.0023}),
('The LAD Bible', 'Occupy Democrats', {'weight': 0.0052}),
('The LAD Bible', 'The Other 98%', {'weight': 0.003}),
('The LAD Bible', 'Breitbart', {'weight': 0.0007}),
('The LAD Bible', 'NowThis', {'weight': 0.0063}),
('The LAD Bible', 'Upworthy', {'weight': 0.0016}),
('The LAD Bible', 'Nation In Distress', {'weight': 0.0004}),
('The LAD Bible', 'BuzzFeed', {'weight': 0.0035}),
('The LAD Bible', 'The Huffington Post', {'weight': 0.0029}),
('The LAD Bible', 'Fox News', {'weight': 0.0016}),
('The LAD Bible', 'The Political Insider', {'weight': 0.0002}),
('The LAD Bible', 'Donald J. Trump', {'weight': 0.0024}),
('The LAD Bible', 'Liberal Daily', {'weight': 0.0001}),
('The LAD Bible', 'CNN', {'weight': 0.0023}),
('The LAD Bible', 'Hillary Clinton', {'weight': 0.0012}),
('The LAD Bible', 'Sean Hannity', {'weight': 0.0006}),
("Uncle Sam's Misguided Children", 'Allen West', {'weight': 0.0047}),
("Uncle Sam's Misguided Children",
'U.S. Senator Bernie Sanders',
{'weight': 0.0002}),
("Uncle Sam's Misguided Children",
'The Federalist Papers',
{'weight': 0.0029}),
("Uncle Sam's Misguided Children", '9GAG', {'weight': 0.0005}),
("Uncle Sam's Misguided Children", 'AWM America', {'weight': 0.0022}),
("Uncle Sam's Misguided Children", 'Franklin Graham', {'weight': 0.0019}),
("Uncle Sam's Misguided Children", 'George Takei', {'weight': 0.0007}),
("Uncle Sam's Misguided Children", 'NPR', {'weight': 0.0001}),
("Uncle Sam's Misguided Children", 'Being Liberal', {'weight': 0.0001}),
("Uncle Sam's Misguided Children", 'ABC News', {'weight': 0.001}),
("Uncle Sam's Misguided Children", 'American News', {'weight': 0.0022}),
("Uncle Sam's Misguided Children", 'Occupy Democrats', {'weight': 0.0004}),
("Uncle Sam's Misguided Children", 'Breitbart', {'weight': 0.0049}),
("Uncle Sam's Misguided Children", 'The Other 98%', {'weight': 0.0006}),
("Uncle Sam's Misguided Children", 'Nation In Distress', {'weight': 0.0027}),
("Uncle Sam's Misguided Children", 'NowThis', {'weight': 0.0007}),
("Uncle Sam's Misguided Children", 'Upworthy', {'weight': 0.0002}),
("Uncle Sam's Misguided Children", 'BuzzFeed', {'weight': 0.0002}),
("Uncle Sam's Misguided Children", 'The Huffington Post', {'weight': 0.0002}),
("Uncle Sam's Misguided Children", 'Fox News', {'weight': 0.0087}),
("Uncle Sam's Misguided Children",
'The Political Insider',
{'weight': 0.0022}),
("Uncle Sam's Misguided Children", 'CNN', {'weight': 0.0007}),
("Uncle Sam's Misguided Children", 'Donald J. Trump', {'weight': 0.0083}),
("Uncle Sam's Misguided Children", 'Hillary Clinton', {'weight': 0.0001}),
("Uncle Sam's Misguided Children", 'Sean Hannity', {'weight': 0.0036}),
('George Takei', 'Allen West', {'weight': 0.0006}),
('George Takei', 'U.S. Senator Bernie Sanders', {'weight': 0.0087}),
('George Takei', 'The Federalist Papers', {'weight': 0.0004}),
('George Takei', '9GAG', {'weight': 0.0037}),
('George Takei', 'AWM America', {'weight': 0.0012}),
('George Takei', 'Franklin Graham', {'weight': 0.0004}),
('George Takei', 'NPR', {'weight': 0.0104}),
('George Takei', 'Being Liberal', {'weight': 0.0067}),
('George Takei', 'ABC News', {'weight': 0.0038}),
('George Takei', 'American News', {'weight': 0.0004}),
('George Takei', 'Occupy Democrats', {'weight': 0.0151}),
('George Takei', 'The Other 98%', {'weight': 0.0105}),
('George Takei', 'Breitbart', {'weight': 0.0007}),
('George Takei', 'Upworthy', {'weight': 0.0083}),
('George Takei', 'NowThis', {'weight': 0.0033}),
('George Takei', 'Nation In Distress', {'weight': 0.0003}),
('George Takei', 'BuzzFeed', {'weight': 0.0068}),
('George Takei', 'The Huffington Post', {'weight': 0.014}),
('George Takei', 'Fox News', {'weight': 0.0018}),
('George Takei', 'The Political Insider', {'weight': 0.0002}),
('George Takei', 'CNN', {'weight': 0.0041}),
('George Takei', 'Liberal Daily', {'weight': 0.0022}),
('George Takei', 'Donald J. Trump', {'weight': 0.0012}),
('George Takei', 'Hillary Clinton', {'weight': 0.0086}),
('George Takei', 'Sean Hannity', {'weight': 0.0005}),
('Being Liberal', 'Allen West', {'weight': 0.0}),
('Being Liberal', 'U.S. Senator Bernie Sanders', {'weight': 0.006}),
('Being Liberal', 'The Federalist Papers', {'weight': 0.0001}),
('Being Liberal', '9GAG', {'weight': 0.0006}),
('Being Liberal', 'AWM America', {'weight': 0.0006}),
('Being Liberal', 'Franklin Graham', {'weight': 0.0002}),
('Being Liberal', 'NPR', {'weight': 0.0058}),
('Being Liberal', 'ABC News', {'weight': 0.0019}),
('Being Liberal', 'American News', {'weight': 0.0001}),
('Being Liberal', 'Occupy Democrats', {'weight': 0.017}),
('Being Liberal', 'The Other 98%', {'weight': 0.0097}),
('Being Liberal', 'Breitbart', {'weight': 0.0001}),
('Being Liberal', 'NowThis', {'weight': 0.0012}),
('Being Liberal', 'Upworthy', {'weight': 0.0042}),
('Being Liberal', 'Nation In Distress', {'weight': 0.0001}),
('Being Liberal', 'BuzzFeed', {'weight': 0.0021}),
('Being Liberal', 'The Huffington Post', {'weight': 0.0082}),
('Being Liberal', 'Fox News', {'weight': 0.0003}),
('Being Liberal', 'The Political Insider', {'weight': 0.0001}),
('Being Liberal', 'Donald J. Trump', {'weight': 0.0001}),
('Being Liberal', 'Liberal Daily', {'weight': 0.0047}),
('Being Liberal', 'CNN', {'weight': 0.0028}),
('Being Liberal', 'Hillary Clinton', {'weight': 0.0075}),
('Being Liberal', 'Sean Hannity', {'weight': 0.0001}),
('Occupy Democrats', 'Allen West', {'weight': 0.0003}),
('Occupy Democrats', 'U.S. Senator Bernie Sanders', {'weight': 0.0151}),
('Occupy Democrats', 'The Federalist Papers', {'weight': 0.0005}),
('Occupy Democrats', '9GAG', {'weight': 0.0039}),
('Occupy Democrats', 'AWM America', {'weight': 0.0031}),
('Occupy Democrats', 'Franklin Graham', {'weight': 0.001}),
('Occupy Democrats', 'NPR', {'weight': 0.0113}),
('Occupy Democrats', 'ABC News', {'weight': 0.0095}),
('Occupy Democrats', 'American News', {'weight': 0.001}),
('Occupy Democrats', 'The Other 98%', {'weight': 0.0244}),
('Occupy Democrats', 'Breitbart', {'weight': 0.0006}),
('Occupy Democrats', 'NowThis', {'weight': 0.0105}),
('Occupy Democrats', 'Upworthy', {'weight': 0.0116}),
('Occupy Democrats', 'Nation In Distress', {'weight': 0.0006}),
('Occupy Democrats', 'BuzzFeed', {'weight': 0.007}),
('Occupy Democrats', 'The Huffington Post', {'weight': 0.0225}),
('Occupy Democrats', 'Fox News', {'weight': 0.0022}),
('Occupy Democrats', 'The Political Insider', {'weight': 0.0005}),
('Occupy Democrats', 'CNN', {'weight': 0.0134}),
('Occupy Democrats', 'Liberal Daily', {'weight': 0.0132}),
('Occupy Democrats', 'Donald J. Trump', {'weight': 0.0011}),
('Occupy Democrats', 'Hillary Clinton', {'weight': 0.0254}),
('Occupy Democrats', 'Sean Hannity', {'weight': 0.0005}),
('Upworthy', 'Allen West', {'weight': 0.0005}),
('Upworthy', 'U.S. Senator Bernie Sanders', {'weight': 0.0053}),
('Upworthy', 'The Federalist Papers', {'weight': 0.0003}),
('Upworthy', '9GAG', {'weight': 0.0016}),
('Upworthy', 'AWM America', {'weight': 0.0011}),
('Upworthy', 'Franklin Graham', {'weight': 0.0008}),
('Upworthy', 'NPR', {'weight': 0.0066}),
('Upworthy', 'ABC News', {'weight': 0.003}),
('Upworthy', 'American News', {'weight': 0.0005}),
('Upworthy', 'The Other 98%', {'weight': 0.0063}),
('Upworthy', 'Breitbart', {'weight': 0.0006}),
('Upworthy', 'NowThis', {'weight': 0.0039}),
('Upworthy', 'Nation In Distress', {'weight': 0.0004}),
('Upworthy', 'BuzzFeed', {'weight': 0.0045}),
('Upworthy', 'The Huffington Post', {'weight': 0.0095}),
('Upworthy', 'Fox News', {'weight': 0.0013}),
('Upworthy', 'The Political Insider', {'weight': 0.0004}),
('Upworthy', 'Donald J. Trump', {'weight': 0.0011}),
('Upworthy', 'Liberal Daily', {'weight': 0.0023}),
('Upworthy', 'CNN', {'weight': 0.0039}),
('Upworthy', 'Hillary Clinton', {'weight': 0.0061}),
('Upworthy', 'Sean Hannity', {'weight': 0.0005}),
('NowThis', 'Allen West', {'weight': 0.0009}),
('NowThis', 'U.S. Senator Bernie Sanders', {'weight': 0.0026}),
('NowThis', 'The Federalist Papers', {'weight': 0.0004}),
('NowThis', '9GAG', {'weight': 0.004}),
('NowThis', 'AWM America', {'weight': 0.0013}),
('NowThis', 'Franklin Graham', {'weight': 0.0006}),
('NowThis', 'NPR', {'weight': 0.0019}),
('NowThis', 'ABC News', {'weight': 0.0039}),
('NowThis', 'American News', {'weight': 0.0006}),
('NowThis', 'The Other 98%', {'weight': 0.0044}),
('NowThis', 'Breitbart', {'weight': 0.0008}),
('NowThis', 'Nation In Distress', {'weight': 0.0006}),
('NowThis', 'BuzzFeed', {'weight': 0.0039}),
('NowThis', 'The Huffington Post', {'weight': 0.0048}),
('NowThis', 'Fox News', {'weight': 0.0022}),
('NowThis', 'The Political Insider', {'weight': 0.0005}),
('NowThis', 'CNN', {'weight': 0.0037}),
('NowThis', 'Liberal Daily', {'weight': 0.0007}),
('NowThis', 'Donald J. Trump', {'weight': 0.0019}),
('NowThis', 'Hillary Clinton', {'weight': 0.0029}),
('NowThis', 'Sean Hannity', {'weight': 0.0007}),
('Nation In Distress', 'Allen West', {'weight': 0.0052}),
('Nation In Distress', 'U.S. Senator Bernie Sanders', {'weight': 0.0002}),
('Nation In Distress', 'The Federalist Papers', {'weight': 0.0053}),
('Nation In Distress', '9GAG', {'weight': 0.0002}),
('Nation In Distress', 'AWM America', {'weight': 0.0082}),
('Nation In Distress', 'Franklin Graham', {'weight': 0.0054}),
('Nation In Distress', 'NPR', {'weight': 0.0001}),
('Nation In Distress', 'ABC News', {'weight': 0.001}),
('Nation In Distress', 'American News', {'weight': 0.0086}),
('Nation In Distress', 'Breitbart', {'weight': 0.0069}),
('Nation In Distress', 'The Other 98%', {'weight': 0.0004}),
('Nation In Distress', 'BuzzFeed', {'weight': 0.0}),
('Nation In Distress', 'The Huffington Post', {'weight': 0.0002}),
('Nation In Distress', 'Fox News', {'weight': 0.0088}),
('Nation In Distress', 'The Political Insider', {'weight': 0.008}),
('Nation In Distress', 'Donald J. Trump', {'weight': 0.0087}),
('Nation In Distress', 'Liberal Daily', {'weight': 0.0002}),
('Nation In Distress', 'CNN', {'weight': 0.0004}),
('Nation In Distress', 'Hillary Clinton', {'weight': 0.0001}),
('Nation In Distress', 'Sean Hannity', {'weight': 0.004}),
('The Huffington Post', 'Allen West', {'weight': 0.0004}),
('The Huffington Post', 'U.S. Senator Bernie Sanders', {'weight': 0.009}),
('The Huffington Post', 'The Federalist Papers', {'weight': 0.0002}),
('The Huffington Post', '9GAG', {'weight': 0.0025}),
('The Huffington Post', 'AWM America', {'weight': 0.0006}),
('The Huffington Post', 'Franklin Graham', {'weight': 0.0003}),
('The Huffington Post', 'NPR', {'weight': 0.0133}),
('The Huffington Post', 'ABC News', {'weight': 0.0056}),
('The Huffington Post', 'American News', {'weight': 0.0001}),
('The Huffington Post', 'The Other 98%', {'weight': 0.0124}),
('The Huffington Post', 'Breitbart', {'weight': 0.0004}),
('The Huffington Post', 'BuzzFeed', {'weight': 0.0086}),
('The Huffington Post', 'Fox News', {'weight': 0.0015}),
('The Huffington Post', 'The Political Insider', {'weight': 0.0001}),
('The Huffington Post', 'CNN', {'weight': 0.0089}),
('The Huffington Post', 'Liberal Daily', {'weight': 0.0034}),
('The Huffington Post', 'Donald J. Trump', {'weight': 0.0007}),
('The Huffington Post', 'Hillary Clinton', {'weight': 0.015}),
('The Huffington Post', 'Sean Hannity', {'weight': 0.0002}),
('The Political Insider', 'Allen West', {'weight': 0.0069}),
('The Political Insider', 'The Federalist Papers', {'weight': 0.0067}),
('The Political Insider', 'U.S. Senator Bernie Sanders', {'weight': 0.0001}),
('The Political Insider', '9GAG', {'weight': 0.0002}),
('The Political Insider', 'AWM America', {'weight': 0.0096}),
('The Political Insider', 'Franklin Graham', {'weight': 0.0061}),
('The Political Insider', 'NPR', {'weight': 0.0001}),
('The Political Insider', 'ABC News', {'weight': 0.0011}),
('The Political Insider', 'American News', {'weight': 0.0108}),
('The Political Insider', 'Breitbart', {'weight': 0.0086}),
('The Political Insider', 'The Other 98%', {'weight': 0.0002}),
('The Political Insider', 'BuzzFeed', {'weight': 0.0}),
('The Political Insider', 'Fox News', {'weight': 0.0102}),
('The Political Insider', 'Donald J. Trump', {'weight': 0.0092}),
('The Political Insider', 'Liberal Daily', {'weight': 0.0001}),
('The Political Insider', 'CNN', {'weight': 0.0006}),
('The Political Insider', 'Hillary Clinton', {'weight': 0.0001}),
('The Political Insider', 'Sean Hannity', {'weight': 0.0058}),
('Liberal Daily', 'Allen West', {'weight': 0.0}),
('Liberal Daily', 'U.S. Senator Bernie Sanders', {'weight': 0.0034}),
('Liberal Daily', 'The Federalist Papers', {'weight': 0.0001}),
('Liberal Daily', '9GAG', {'weight': 0.0001}),
('Liberal Daily', 'AWM America', {'weight': 0.0011}),
('Liberal Daily', 'Franklin Graham', {'weight': 0.0002}),
('Liberal Daily', 'NPR', {'weight': 0.0023}),
('Liberal Daily', 'ABC News', {'weight': 0.0013}),
('Liberal Daily', 'American News', {'weight': 0.0002}),
('Liberal Daily', 'The Other 98%', {'weight': 0.0036}),
('Liberal Daily', 'Breitbart', {'weight': 0.0001}),
('Liberal Daily', 'BuzzFeed', {'weight': 0.0003}),
('Liberal Daily', 'Fox News', {'weight': 0.0002}),
('Liberal Daily', 'CNN', {'weight': 0.0018}),
('Liberal Daily', 'Donald J. Trump', {'weight': 0.0001}),
('Liberal Daily', 'Hillary Clinton', {'weight': 0.006}),
('Liberal Daily', 'Sean Hannity', {'weight': 0.0001}),
('Sean Hannity', 'Allen West', {'weight': 0.0132}),
('Sean Hannity', 'The Federalist Papers', {'weight': 0.0066}),
('Sean Hannity', 'U.S. Senator Bernie Sanders', {'weight': 0.0002}),
('Sean Hannity', '9GAG', {'weight': 0.0003}),
('Sean Hannity', 'AWM America', {'weight': 0.0051}),
('Sean Hannity', 'Franklin Graham', {'weight': 0.0082}),
('Sean Hannity', 'NPR', {'weight': 0.0002}),
('Sean Hannity', 'American News', {'weight': 0.0052}),
('Sean Hannity', 'ABC News', {'weight': 0.0017}),
('Sean Hannity', 'Breitbart', {'weight': 0.0129}),
('Sean Hannity', 'The Other 98%', {'weight': 0.0004}),
('Sean Hannity', 'BuzzFeed', {'weight': 0.0002}),
('Sean Hannity', 'Fox News', {'weight': 0.0212}),
('Sean Hannity', 'CNN', {'weight': 0.0011}),
('Sean Hannity', 'Donald J. Trump', {'weight': 0.0199}),
('Sean Hannity', 'Hillary Clinton', {'weight': 0.0001}),
('Allen West', 'The Federalist Papers', {'weight': 0.0091}),
('Allen West', 'U.S. Senator Bernie Sanders', {'weight': 0.0003}),
('Allen West', '9GAG', {'weight': 0.0004}),
('Allen West', 'AWM America', {'weight': 0.006}),
('Allen West', 'Franklin Graham', {'weight': 0.0088}),
('Allen West', 'NPR', {'weight': 0.0001}),
('Allen West', 'ABC News', {'weight': 0.0015}),
('Allen West', 'American News', {'weight': 0.007}),
('Allen West', 'Breitbart', {'weight': 0.0146}),
('Allen West', 'The Other 98%', {'weight': 0.0004}),
('Allen West', 'BuzzFeed', {'weight': 0.0001}),
('Allen West', 'Fox News', {'weight': 0.0194}),
('Allen West', 'Donald J. Trump', {'weight': 0.0171}),
('Allen West', 'CNN', {'weight': 0.0011}),
('Allen West', 'Hillary Clinton', {'weight': 0.0001}),
('U.S. Senator Bernie Sanders', 'The Federalist Papers', {'weight': 0.0002}),
('U.S. Senator Bernie Sanders', '9GAG', {'weight': 0.0012}),
('U.S. Senator Bernie Sanders', 'AWM America', {'weight': 0.0007}),
('U.S. Senator Bernie Sanders', 'Franklin Graham', {'weight': 0.0003}),
('U.S. Senator Bernie Sanders', 'NPR', {'weight': 0.0072}),
('U.S. Senator Bernie Sanders', 'ABC News', {'weight': 0.002}),
('U.S. Senator Bernie Sanders', 'American News', {'weight': 0.0002}),
('U.S. Senator Bernie Sanders', 'The Other 98%', {'weight': 0.01}),
('U.S. Senator Bernie Sanders', 'Breitbart', {'weight': 0.0004}),
('U.S. Senator Bernie Sanders', 'BuzzFeed', {'weight': 0.0025}),
('U.S. Senator Bernie Sanders', 'Fox News', {'weight': 0.0006}),
('U.S. Senator Bernie Sanders', 'Donald J. Trump', {'weight': 0.0006}),
('U.S. Senator Bernie Sanders', 'CNN', {'weight': 0.0035}),
('U.S. Senator Bernie Sanders', 'Hillary Clinton', {'weight': 0.0069}),
('The Federalist Papers', '9GAG', {'weight': 0.0003}),
('The Federalist Papers', 'AWM America', {'weight': 0.0064}),
('The Federalist Papers', 'Franklin Graham', {'weight': 0.0064}),
('The Federalist Papers', 'NPR', {'weight': 0.0002}),
('The Federalist Papers', 'ABC News', {'weight': 0.0011}),
('The Federalist Papers', 'American News', {'weight': 0.0072}),
('The Federalist Papers', 'Breitbart', {'weight': 0.0104}),
('The Federalist Papers', 'The Other 98%', {'weight': 0.0004}),
('The Federalist Papers', 'BuzzFeed', {'weight': 0.0001}),
('The Federalist Papers', 'Fox News', {'weight': 0.0104}),
('The Federalist Papers', 'Donald J. Trump', {'weight': 0.0091}),
('The Federalist Papers', 'CNN', {'weight': 0.0005}),
('The Federalist Papers', 'Hillary Clinton', {'weight': 0.0001}),
('9GAG', 'AWM America', {'weight': 0.0002}),
('9GAG', 'Franklin Graham', {'weight': 0.0002}),
('9GAG', 'NPR', {'weight': 0.0005}),
('9GAG', 'ABC News', {'weight': 0.0017}),
('9GAG', 'American News', {'weight': 0.0002}),
('9GAG', 'The Other 98%', {'weight': 0.0032}),
('9GAG', 'Breitbart', {'weight': 0.0005}),
('9GAG', 'BuzzFeed', {'weight': 0.0037}),
('9GAG', 'Fox News', {'weight': 0.0012}),
('9GAG', 'Donald J. Trump', {'weight': 0.0015}),
('9GAG', 'CNN', {'weight': 0.002}),
('9GAG', 'Hillary Clinton', {'weight': 0.0012}),
('AWM America', 'Franklin Graham', {'weight': 0.0092}),
('AWM America', 'NPR', {'weight': 0.0005}),
('AWM America', 'American News', {'weight': 0.015}),
('AWM America', 'ABC News', {'weight': 0.0024}),
('AWM America', 'The Other 98%', {'weight': 0.001}),
('AWM America', 'Breitbart', {'weight': 0.0079}),
('AWM America', 'BuzzFeed', {'weight': 0.0001}),
('AWM America', 'Fox News', {'weight': 0.0124}),
('AWM America', 'Donald J. Trump', {'weight': 0.01}),
('AWM America', 'CNN', {'weight': 0.001}),
('AWM America', 'Hillary Clinton', {'weight': 0.0007}),
('Franklin Graham', 'NPR', {'weight': 0.0002}),
('Franklin Graham', 'ABC News', {'weight': 0.0026}),
('Franklin Graham', 'American News', {'weight': 0.0082}),
('Franklin Graham', 'Breitbart', {'weight': 0.0101}),
('Franklin Graham', 'The Other 98%', {'weight': 0.0005}),
('Franklin Graham', 'BuzzFeed', {'weight': 0.0001}),
('Franklin Graham', 'Fox News', {'weight': 0.0187}),
('Franklin Graham', 'Donald J. Trump', {'weight': 0.0167}),
('Franklin Graham', 'CNN', {'weight': 0.0011}),
('Franklin Graham', 'Hillary Clinton', {'weight': 0.0002}),
('NPR', 'ABC News', {'weight': 0.0024}),
('NPR', 'American News', {'weight': 0.0001}),
('NPR', 'The Other 98%', {'weight': 0.007}),
('NPR', 'Breitbart', {'weight': 0.0002}),
('NPR', 'BuzzFeed', {'weight': 0.0041}),
('NPR', 'Fox News', {'weight': 0.0006}),
('NPR', 'CNN', {'weight': 0.0042}),
('NPR', 'Donald J. Trump', {'weight': 0.0002}),
('NPR', 'Hillary Clinton', {'weight': 0.0097}),
('American News', 'ABC News', {'weight': 0.0015}),
('American News', 'Breitbart', {'weight': 0.0088}),
('American News', 'The Other 98%', {'weight': 0.0003}),
('American News', 'BuzzFeed', {'weight': 0.0001}),
('American News', 'Fox News', {'weight': 0.0117}),
('American News', 'Donald J. Trump', {'weight': 0.0098}),
('American News', 'CNN', {'weight': 0.0004}),
('American News', 'Hillary Clinton', {'weight': 0.0002}),
('ABC News', 'The Other 98%', {'weight': 0.0033}),
('ABC News', 'Breitbart', {'weight': 0.0018}),
('ABC News', 'BuzzFeed', {'weight': 0.0027}),
('ABC News', 'Fox News', {'weight': 0.0061}),
('ABC News', 'Donald J. Trump', {'weight': 0.0049}),
('ABC News', 'CNN', {'weight': 0.0061}),
('ABC News', 'Hillary Clinton', {'weight': 0.0049}),
('The Other 98%', 'Breitbart', {'weight': 0.0007}),
('The Other 98%', 'BuzzFeed', {'weight': 0.005}),
('The Other 98%', 'Fox News', {'weight': 0.0014}),
('The Other 98%', 'CNN', {'weight': 0.0046}),
('The Other 98%', 'Donald J. Trump', {'weight': 0.0009}),
('The Other 98%', 'Hillary Clinton', {'weight': 0.0079}),
('Breitbart', 'BuzzFeed', {'weight': 0.0003}),
('Breitbart', 'Fox News', {'weight': 0.0213}),
('Breitbart', 'Donald J. Trump', {'weight': 0.0212}),
('Breitbart', 'CNN', {'weight': 0.0012}),
('Breitbart', 'Hillary Clinton', {'weight': 0.0002}),
('BuzzFeed', 'Fox News', {'weight': 0.0011}),
('BuzzFeed', 'CNN', {'weight': 0.0032}),
('BuzzFeed', 'Donald J. Trump', {'weight': 0.0007}),
('BuzzFeed', 'Hillary Clinton', {'weight': 0.0043}),
('Fox News', 'Donald J. Trump', {'weight': 0.0439}),
('Fox News', 'CNN', {'weight': 0.0045}),
('Fox News', 'Hillary Clinton', {'weight': 0.0012}),
('Donald J. Trump', 'CNN', {'weight': 0.0033}),
('Donald J. Trump', 'Hillary Clinton', {'weight': 0.0006}),
('CNN', 'Hillary Clinton', {'weight': 0.0089})]
# Find top x reaction_time Pages
df2_20161002 = df_20161002.groupby(by=['page_id']).sum().groupby(level=[0]).cumsum()
df2_20161002 = df2_20161002.sort_values(by='reaction_time', ascending=False)
df2_20161002 = df2_20161002.drop("user_id", axis='columns')
df2_20161002_add_page_info = df2_20161002.merge(right=page_info, right_on='page_id', left_on='page_id')
df2_20161002_add_page_info = df2_20161002_add_page_info.reset_index()
df2_20161002_add_page_info.head(30)
| index | page_id | reaction_time | page_name | category | type | type_sub | type_issue | fan_count | talking_about_count | page_url | total_like | total_comment | total_share | 1:07:14 | rank_1:7:14 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 0 | 346937065399354 | 36016.0 | Occupy Democrats | Political Organization | group | NaN | NaN | 3900088 | 10721362 | https://www.facebook.com/OccupyDemocrats | 792155 | 74491 | 798849 | 1249747.8 | 3 |
| 1 | 1 | 153080620724 | 28853.0 | Donald J. Trump | Public Figure | figure | politician | NaN | 10801785 | 1722696 | https://www.facebook.com/DonaldTrump | 4463122 | 486152 | 551204 | 1558304.2 | 2 |
| 2 | 2 | 15704546335 | 23138.0 | Fox News | Media/News/Publishing | media | tv | NaN | 13329520 | 3825122 | https://www.facebook.com/FoxNews | 4480553 | 2117810 | 1865659 | 4542444.9 | 1 |
| 3 | 3 | 21785951839 | 17731.0 | 9GAG | App Page | others | NaN | NaN | 32155423 | 11547502 | https://www.facebook.com/9gag | 13909 | 725 | 1555 | 4075.4 | 760 |
| 4 | 4 | 133961323610549 | 13977.0 | Donald Trump For President | Politician | figure | politician | NaN | 1633254 | 1437603 | https://www.facebook.com/DonaldTrump4President | 168286 | 36829 | 75417 | 148192.7 | 67 |
| 5 | 5 | 95475020353 | 13072.0 | Breitbart | Media/News/Publishing | media | website | NaN | 2445780 | 1180481 | https://www.facebook.com/Breitbart | 1132039 | 313784 | 552679 | 1106603.3 | 4 |
| 6 | 6 | 18468761129 | 12716.0 | The Huffington Post | Media/News/Publishing | media | website | NaN | 8200138 | 2338598 | https://www.facebook.com/HuffingtonPost | 1025157 | 89556 | 412304 | 742430.5 | 8 |
| 7 | 7 | 889307941125736 | 12526.0 | Hillary Clinton | Politician | figure | politician | NaN | 6159021 | 2269940 | https://www.facebook.com/hillaryclinton | 2042363 | 461294 | 349858 | 1016943.3 | 5 |
| 8 | 8 | 114517875225866 | 11845.0 | The Other 98% | Organization | group | NaN | inequality | 3088088 | 5241170 | https://www.facebook.com/TheOther98 | 99948 | 9665 | 134243 | 204700.5 | 50 |
| 9 | 9 | 205344452828349 | 10151.0 | George Takei | Actor/Director | figure | journalist | NaN | 9856263 | 2527229 | https://www.facebook.com/georgehtakei | 10717 | 2273 | 596 | 3497.2 | 822 |
| 10 | 10 | 199098633470668 | 10082.0 | The LAD Bible | Media/News/Publishing | media | website | NaN | 16164893 | 18579204 | https://www.facebook.com/LADbible | 46478 | 9710 | 9196 | 24319.2 | 259 |
| 11 | 11 | 22067606728 | 9125.0 | Allen West | Public Figure | figure | politician | NaN | 2436623 | 1552544 | https://www.facebook.com/AllenBWest | 17445 | 750 | 7716 | 13071.9 | 403 |
| 12 | 12 | 226821494115353 | 8731.0 | Nation In Distress | Media/News/Publishing | media | website | NaN | 1649087 | 3154824 | https://www.facebook.com/NationInDistress | 20822 | 3478 | 7454 | 14952.4 | 370 |
| 13 | 13 | 69813760388 | 7063.0 | Sean Hannity | Public Figure | figure | journalist | NaN | 2460455 | 620133 | https://www.facebook.com/SeanHannity | 797223 | 127169 | 311126 | 604317.0 | 11 |
| 14 | 14 | 10643211755 | 6987.0 | NPR | Non-Profit Organization | media | radio | NaN | 5132848 | 1151976 | https://www.facebook.com/NPR | 207136 | 45354 | 65668 | 144396.6 | 70 |
| 15 | 15 | 131201286936061 | 6857.0 | Franklin Graham | Public Figure | figure | journalist | NaN | 4473335 | 553129 | https://www.facebook.com/FranklinGraham | 107593 | 14532 | 50850 | 92121.7 | 107 |
| 16 | 16 | 179035672287016 | 6729.0 | American News | Media/News/Publishing | media | website | NaN | 5368155 | 1672285 | https://www.facebook.com/ThePatriotReview | 538521 | 51804 | 182386 | 345455.3 | 27 |
| 17 | 17 | 177486166274 | 6686.0 | Being Liberal | Media/News/Publishing | media | website | NaN | 1499325 | 803868 | https://www.facebook.com/beingliberal.org | 367306 | 34054 | 130558 | 243349.6 | 40 |
| 18 | 18 | 5550296508 | 6388.0 | CNN | Media/News/Publishing | media | tv | NaN | 23414282 | 3217462 | https://www.facebook.com/cnn | 617880 | 289587 | 160728 | 489518.1 | 16 |
| 19 | 19 | 9124187907 | 6066.0 | U.S. Senator Bernie Sanders | Politician | figure | politician | NaN | 4269815 | 1004148 | https://www.facebook.com/senatorsanders | 20139 | 1260 | 11770 | 19373.9 | 310 |
| 20 | 20 | 86680728811 | 6054.0 | ABC News | TV Network | media | tv | NaN | 9108005 | 3453112 | https://www.facebook.com/ABCNews | 399188 | 201179 | 77633 | 289430.3 | 34 |
| 21 | 21 | 138691142964027 | 6031.0 | Dr. Ben Carson | Public Figure | figure | politician | NaN | 5439989 | 369651 | https://www.facebook.com/realbencarson | 258966 | 13781 | 69854 | 133338.9 | 76 |
| 22 | 22 | 339226922847416 | 6004.0 | AWM America | News/Media Website | media | website | NaN | 6161533 | 1876242 | https://www.facebook.com/AWMAmerica | 19351 | 5165 | 4352 | 11643.4 | 434 |
| 23 | 23 | 107705785934333 | 5719.0 | The Federalist Papers | Media/News/Publishing | media | website | NaN | 2175186 | 1271961 | https://www.facebook.com/TheFederalistPapers | 329771 | 54575 | 199279 | 350170.2 | 26 |
| 24 | 24 | 169676909894983 | 5588.0 | Uncle Sam's Misguided Children | Website | media | website | NaN | 1228559 | 2798671 | https://www.facebook.com/UncleSamsMisguidedChi... | 8601 | 2853 | 8844 | 15238.8 | 359 |
| 25 | 25 | 112723252096438 | 5511.0 | The Political Insider | News/Media Website | media | website | NaN | 2598529 | 1004533 | https://www.facebook.com/ThePoliticalInsider | 227963 | 33948 | 87747 | 169405.7 | 60 |
| 26 | 26 | 21898300328 | 5427.0 | BuzzFeed | Media/News/Publishing | media | website | NaN | 8297094 | 2953846 | https://www.facebook.com/BuzzFeed | 49504 | 9953 | 22182 | 42972.3 | 191 |
| 27 | 27 | 341163402640457 | 5188.0 | NowThis | News/Media Website | media | website | NaN | 7743317 | 10964723 | https://www.facebook.com/NowThisNews | 147450 | 17401 | 4662 | 33452.5 | 222 |
| 28 | 28 | 354522044588660 | 5100.0 | Upworthy | Media/News/Publishing | media | website | NaN | 10028666 | 3138601 | https://www.facebook.com/Upworthy | 34369 | 1443 | 7292 | 14655.8 | 375 |
| 29 | 29 | 610045389164725 | 4895.0 | Liberal Daily | Media/News/Publishing | media | website | NaN | 1040020 | 287032 | https://www.facebook.com/610045389164725 | 109651 | 17656 | 30208 | 65615.5 | 148 |
#2016-10-09
# Load data and clean data
df_20161009 = df.drop(df[df['week_start_date']!='2016-10-09'].index)
df_20161009 = df_20161009.drop("week_start_date", axis='columns')
df_20161009.reset_index(drop=True, inplace=True)
df_20161009_add_page_info = df_20161009.merge(right=page_info, right_on='page_id', left_on='page_id')
## Find top x reaction_time Pages
df2_20161009 = df_20161009_add_page_info.groupby(by=['page_id']).sum().groupby(level=[0]).cumsum()
df2_20161009 = df2_20161009.sort_values(by='reaction_time', ascending=False)
df2_20161009 = df2_20161009.reset_index()
page_id_20161009 = df2_20161009.page_id.tolist()
## only analysis top x pages
df3_20161009_add_page_info = df_20161009_add_page_info[df_20161009_add_page_info.page_id.isin(page_id_20161009[0:30])]
df3_20161009_add_page_info.reset_index(drop=True, inplace=True)
# graph visualization
B_20161009 = nx_graph_from_pandas_edgelist(df3_20161009_add_page_info)
bottom_nodes, top_nodes = bipartite.sets(B_20161009)
# Project users' nodes on pages' node
G_20161009 = bipartite.weighted_projected_graph(B_20161009, list(top_nodes), ratio=True)
for u, v, d in G_20161009.edges(data=True):
d['weight'] = round(d['weight'], 4)
# Calculate average weight
weight_sum = 0
node_sum = 0
average_weight = 0
for u, v, d in G_20161009.edges(data=True):
weight_sum += d['weight']
node_sum += 1
average_weight = weight_sum / node_sum
elarge = [(u, v) for (u, v, d) in G_20161009.edges(data=True) if d["weight"] > average_weight ]
esmall = [(u, v) for (u, v, d) in G_20161009.edges(data=True) if d["weight"] <= average_weight ]
pos = nx.spring_layout(G_20161009, seed=7) # positions for all nodes - seed for reproducibility
# nodes
nx.draw_networkx_nodes(G_20161009, pos, node_size=60)
# edges
nx.draw_networkx_edges(G_20161009, pos, edgelist=elarge, width=2, edge_color="red")
nx.draw_networkx_edges(
G_20161009, pos, edgelist=esmall, width=0.5, alpha=0.5, edge_color="black", style="dashed"
)
# node labels
nx.draw_networkx_labels(G_20161009, pos, font_size=15, font_family="sans-serif")
# edge weight labels
edge_labels = nx.get_edge_attributes(G_20161009, "weight")
#nx.draw_networkx_edge_labels(G_20161009, pos, edge_labels, font_size=6, font_family="sans-serif")
ax = plt.gca()
ax.margins(0.001)
plt.axis("off")
plt.tight_layout()
plt.gcf().subplots_adjust(left=0)
plt.gcf().subplots_adjust(right=2)
plt.gcf().subplots_adjust(top=2)
plt.gcf().subplots_adjust(bottom=0)
plt.show()
for u, v, d in G_20161009.edges(data=True):
d['weight'] = round(d['weight'], 4)
list(G_20161009.edges(data=True))
[('Donald Trump For President', 'Allen West', {'weight': 0.0101}),
('Donald Trump For President', 'The Federalist Papers', {'weight': 0.0081}),
('Donald Trump For President',
'U.S. Senator Bernie Sanders',
{'weight': 0.0001}),
('Donald Trump For President', '9GAG', {'weight': 0.0001}),
('Donald Trump For President', 'The LAD Bible', {'weight': 0.0004}),
('Donald Trump For President', 'Franklin Graham', {'weight': 0.0081}),
('Donald Trump For President',
"Uncle Sam's Misguided Children",
{'weight': 0.0037}),
('Donald Trump For President', 'George Takei', {'weight': 0.0002}),
('Donald Trump For President', 'NPR', {'weight': 0.0001}),
('Donald Trump For President', 'Being Liberal', {'weight': 0.0}),
('Donald Trump For President', 'American News', {'weight': 0.0132}),
('Donald Trump For President', 'ABC News', {'weight': 0.0025}),
('Donald Trump For President', 'Occupy Democrats', {'weight': 0.0004}),
('Donald Trump For President', 'Breitbart', {'weight': 0.0127}),
('Donald Trump For President', 'The Other 98%', {'weight': 0.0004}),
('Donald Trump For President', 'Nation In Distress', {'weight': 0.0107}),
('Donald Trump For President', 'Upworthy', {'weight': 0.0004}),
('Donald Trump For President', 'NowThis', {'weight': 0.0004}),
('Donald Trump For President', 'BuzzFeed', {'weight': 0.0001}),
('Donald Trump For President', 'The Huffington Post', {'weight': 0.0002}),
('Donald Trump For President', 'Fox News', {'weight': 0.0214}),
('Donald Trump For President', 'The Political Insider', {'weight': 0.0109}),
('Donald Trump For President', 'The Onion', {'weight': 0.0002}),
('Donald Trump For President', 'Donald J. Trump', {'weight': 0.0241}),
('Donald Trump For President', 'The New York Times', {'weight': 0.0001}),
('Donald Trump For President', 'CNN', {'weight': 0.0008}),
('Donald Trump For President', 'Hillary Clinton', {'weight': 0.0001}),
('Donald Trump For President', 'Sean Hannity', {'weight': 0.0089}),
('Donald Trump For President', 'Western Journalism', {'weight': 0.0072}),
('The LAD Bible', 'Allen West', {'weight': 0.0004}),
('The LAD Bible', 'The Federalist Papers', {'weight': 0.0003}),
('The LAD Bible', 'U.S. Senator Bernie Sanders', {'weight': 0.0016}),
('The LAD Bible', '9GAG', {'weight': 0.0114}),
('The LAD Bible', 'Franklin Graham', {'weight': 0.0002}),
('The LAD Bible', "Uncle Sam's Misguided Children", {'weight': 0.0007}),
('The LAD Bible', 'George Takei', {'weight': 0.0045}),
('The LAD Bible', 'NPR', {'weight': 0.0008}),
('The LAD Bible', 'Being Liberal', {'weight': 0.0006}),
('The LAD Bible', 'ABC News', {'weight': 0.0024}),
('The LAD Bible', 'American News', {'weight': 0.0003}),
('The LAD Bible', 'Occupy Democrats', {'weight': 0.005}),
('The LAD Bible', 'The Other 98%', {'weight': 0.0028}),
('The LAD Bible', 'Breitbart', {'weight': 0.0007}),
('The LAD Bible', 'NowThis', {'weight': 0.0076}),
('The LAD Bible', 'Nation In Distress', {'weight': 0.0003}),
('The LAD Bible', 'Upworthy', {'weight': 0.003}),
('The LAD Bible', 'BuzzFeed', {'weight': 0.004}),
('The LAD Bible', 'The Huffington Post', {'weight': 0.0025}),
('The LAD Bible', 'Fox News', {'weight': 0.002}),
('The LAD Bible', 'The Political Insider', {'weight': 0.0003}),
('The LAD Bible', 'The Onion', {'weight': 0.0013}),
('The LAD Bible', 'Donald J. Trump', {'weight': 0.0034}),
('The LAD Bible', 'The New York Times', {'weight': 0.0013}),
('The LAD Bible', 'CNN', {'weight': 0.002}),
('The LAD Bible', 'Hillary Clinton', {'weight': 0.0013}),
('The LAD Bible', 'Sean Hannity', {'weight': 0.0004}),
('The LAD Bible', 'Western Journalism', {'weight': 0.0003}),
("Uncle Sam's Misguided Children", 'Allen West', {'weight': 0.0051}),
("Uncle Sam's Misguided Children",
'The Federalist Papers',
{'weight': 0.0034}),
("Uncle Sam's Misguided Children",
'U.S. Senator Bernie Sanders',
{'weight': 0.0001}),
("Uncle Sam's Misguided Children", '9GAG', {'weight': 0.0003}),
("Uncle Sam's Misguided Children", 'Franklin Graham', {'weight': 0.0018}),
("Uncle Sam's Misguided Children", 'George Takei', {'weight': 0.0003}),
("Uncle Sam's Misguided Children", 'NPR', {'weight': 0.0001}),
("Uncle Sam's Misguided Children", 'ABC News', {'weight': 0.0015}),
("Uncle Sam's Misguided Children", 'American News', {'weight': 0.003}),
("Uncle Sam's Misguided Children", 'Occupy Democrats', {'weight': 0.0003}),
("Uncle Sam's Misguided Children", 'Breitbart', {'weight': 0.0052}),
("Uncle Sam's Misguided Children", 'The Other 98%', {'weight': 0.0004}),
("Uncle Sam's Misguided Children", 'Nation In Distress', {'weight': 0.0024}),
("Uncle Sam's Misguided Children", 'NowThis', {'weight': 0.0005}),
("Uncle Sam's Misguided Children", 'Upworthy', {'weight': 0.0004}),
("Uncle Sam's Misguided Children", 'BuzzFeed', {'weight': 0.0001}),
("Uncle Sam's Misguided Children", 'The Huffington Post', {'weight': 0.0001}),
("Uncle Sam's Misguided Children", 'Fox News', {'weight': 0.0095}),
("Uncle Sam's Misguided Children",
'The Political Insider',
{'weight': 0.0023}),
("Uncle Sam's Misguided Children", 'The Onion', {'weight': 0.0002}),
("Uncle Sam's Misguided Children", 'Donald J. Trump', {'weight': 0.0105}),
("Uncle Sam's Misguided Children", 'The New York Times', {'weight': 0.0001}),
("Uncle Sam's Misguided Children", 'CNN', {'weight': 0.0005}),
("Uncle Sam's Misguided Children", 'Hillary Clinton', {'weight': 0.0}),
("Uncle Sam's Misguided Children", 'Sean Hannity', {'weight': 0.0033}),
("Uncle Sam's Misguided Children", 'Western Journalism', {'weight': 0.0018}),
('George Takei', 'Allen West', {'weight': 0.0005}),
('George Takei', 'U.S. Senator Bernie Sanders', {'weight': 0.0107}),
('George Takei', 'The Federalist Papers', {'weight': 0.0004}),
('George Takei', '9GAG', {'weight': 0.0031}),
('George Takei', 'Franklin Graham', {'weight': 0.0003}),
('George Takei', 'NPR', {'weight': 0.0121}),
('George Takei', 'Being Liberal', {'weight': 0.0084}),
('George Takei', 'ABC News', {'weight': 0.0049}),
('George Takei', 'American News', {'weight': 0.0005}),
('George Takei', 'Occupy Democrats', {'weight': 0.0196}),
('George Takei', 'The Other 98%', {'weight': 0.0113}),
('George Takei', 'Breitbart', {'weight': 0.0006}),
('George Takei', 'NowThis', {'weight': 0.0057}),
('George Takei', 'Upworthy', {'weight': 0.0123}),
('George Takei', 'Nation In Distress', {'weight': 0.0004}),
('George Takei', 'BuzzFeed', {'weight': 0.0091}),
('George Takei', 'The Huffington Post', {'weight': 0.0145}),
('George Takei', 'Fox News', {'weight': 0.002}),
('George Takei', 'The Political Insider', {'weight': 0.0002}),
('George Takei', 'The Onion', {'weight': 0.0084}),
('George Takei', 'CNN', {'weight': 0.0065}),
('George Takei', 'The New York Times', {'weight': 0.0086}),
('George Takei', 'Donald J. Trump', {'weight': 0.0015}),
('George Takei', 'Hillary Clinton', {'weight': 0.0103}),
('George Takei', 'Sean Hannity', {'weight': 0.0004}),
('George Takei', 'Western Journalism', {'weight': 0.0003}),
('Being Liberal', 'Allen West', {'weight': 0.0001}),
('Being Liberal', 'U.S. Senator Bernie Sanders', {'weight': 0.0075}),
('Being Liberal', 'The Federalist Papers', {'weight': 0.0002}),
('Being Liberal', '9GAG', {'weight': 0.0005}),
('Being Liberal', 'Franklin Graham', {'weight': 0.0001}),
('Being Liberal', 'NPR', {'weight': 0.0064}),
('Being Liberal', 'American News', {'weight': 0.0002}),
('Being Liberal', 'ABC News', {'weight': 0.0028}),
('Being Liberal', 'Occupy Democrats', {'weight': 0.0212}),
('Being Liberal', 'The Other 98%', {'weight': 0.0096}),
('Being Liberal', 'Breitbart', {'weight': 0.0002}),
('Being Liberal', 'Upworthy', {'weight': 0.0072}),
('Being Liberal', 'NowThis', {'weight': 0.0019}),
('Being Liberal', 'Nation In Distress', {'weight': 0.0001}),
('Being Liberal', 'BuzzFeed', {'weight': 0.0036}),
('Being Liberal', 'The Huffington Post', {'weight': 0.0096}),
('Being Liberal', 'Fox News', {'weight': 0.0004}),
('Being Liberal', 'The Political Insider', {'weight': 0.0001}),
('Being Liberal', 'The Onion', {'weight': 0.0042}),
('Being Liberal', 'CNN', {'weight': 0.0036}),
('Being Liberal', 'The New York Times', {'weight': 0.0047}),
('Being Liberal', 'Donald J. Trump', {'weight': 0.0001}),
('Being Liberal', 'Hillary Clinton', {'weight': 0.0093}),
('Being Liberal', 'Sean Hannity', {'weight': 0.0}),
('Being Liberal', 'Western Journalism', {'weight': 0.0001}),
('Occupy Democrats', 'Allen West', {'weight': 0.0004}),
('Occupy Democrats', 'U.S. Senator Bernie Sanders', {'weight': 0.018}),
('Occupy Democrats', 'The Federalist Papers', {'weight': 0.0004}),
('Occupy Democrats', '9GAG', {'weight': 0.0027}),
('Occupy Democrats', 'Franklin Graham', {'weight': 0.0005}),
('Occupy Democrats', 'NPR', {'weight': 0.0138}),
('Occupy Democrats', 'ABC News', {'weight': 0.0101}),
('Occupy Democrats', 'American News', {'weight': 0.0012}),
('Occupy Democrats', 'The Other 98%', {'weight': 0.0251}),
('Occupy Democrats', 'Breitbart', {'weight': 0.0006}),
('Occupy Democrats', 'Upworthy', {'weight': 0.0173}),
('Occupy Democrats', 'NowThis', {'weight': 0.0102}),
('Occupy Democrats', 'Nation In Distress', {'weight': 0.0005}),
('Occupy Democrats', 'BuzzFeed', {'weight': 0.0105}),
('Occupy Democrats', 'The Huffington Post', {'weight': 0.0246}),
('Occupy Democrats', 'Fox News', {'weight': 0.0026}),
('Occupy Democrats', 'The Political Insider', {'weight': 0.0006}),
('Occupy Democrats', 'The Onion', {'weight': 0.009}),
('Occupy Democrats', 'CNN', {'weight': 0.0129}),
('Occupy Democrats', 'The New York Times', {'weight': 0.013}),
('Occupy Democrats', 'Donald J. Trump', {'weight': 0.0012}),
('Occupy Democrats', 'Hillary Clinton', {'weight': 0.0279}),
('Occupy Democrats', 'Sean Hannity', {'weight': 0.0004}),
('Occupy Democrats', 'Western Journalism', {'weight': 0.0004}),
('Upworthy', 'Allen West', {'weight': 0.0009}),
('Upworthy', 'U.S. Senator Bernie Sanders', {'weight': 0.0081}),
('Upworthy', 'The Federalist Papers', {'weight': 0.0006}),
('Upworthy', '9GAG', {'weight': 0.0016}),
('Upworthy', 'Franklin Graham', {'weight': 0.0011}),
('Upworthy', 'NPR', {'weight': 0.0098}),
('Upworthy', 'ABC News', {'weight': 0.0053}),
('Upworthy', 'American News', {'weight': 0.0014}),
('Upworthy', 'The Other 98%', {'weight': 0.0083}),
('Upworthy', 'Breitbart', {'weight': 0.0008}),
('Upworthy', 'NowThis', {'weight': 0.0066}),
('Upworthy', 'Nation In Distress', {'weight': 0.0006}),
('Upworthy', 'BuzzFeed', {'weight': 0.007}),
('Upworthy', 'The Huffington Post', {'weight': 0.0136}),
('Upworthy', 'Fox News', {'weight': 0.0035}),
('Upworthy', 'The Political Insider', {'weight': 0.0007}),
('Upworthy', 'The Onion', {'weight': 0.0046}),
('Upworthy', 'Donald J. Trump', {'weight': 0.002}),
('Upworthy', 'The New York Times', {'weight': 0.0077}),
('Upworthy', 'CNN', {'weight': 0.0058}),
('Upworthy', 'Hillary Clinton', {'weight': 0.0091}),
('Upworthy', 'Sean Hannity', {'weight': 0.0008}),
('Upworthy', 'Western Journalism', {'weight': 0.0008}),
('Nation In Distress', 'Allen West', {'weight': 0.0055}),
('Nation In Distress', 'The Federalist Papers', {'weight': 0.0069}),
('Nation In Distress', 'U.S. Senator Bernie Sanders', {'weight': 0.0002}),
('Nation In Distress', '9GAG', {'weight': 0.0001}),
('Nation In Distress', 'Franklin Graham', {'weight': 0.0051}),
('Nation In Distress', 'NPR', {'weight': 0.0001}),
('Nation In Distress', 'American News', {'weight': 0.0111}),
('Nation In Distress', 'ABC News', {'weight': 0.0014}),
('Nation In Distress', 'Breitbart', {'weight': 0.0072}),
('Nation In Distress', 'The Other 98%', {'weight': 0.0003}),
('Nation In Distress', 'NowThis', {'weight': 0.0003}),
('Nation In Distress', 'BuzzFeed', {'weight': 0.0001}),
('Nation In Distress', 'The Huffington Post', {'weight': 0.0001}),
('Nation In Distress', 'Fox News', {'weight': 0.0113}),
('Nation In Distress', 'The Political Insider', {'weight': 0.0098}),
('Nation In Distress', 'The Onion', {'weight': 0.0001}),
('Nation In Distress', 'Donald J. Trump', {'weight': 0.0102}),
('Nation In Distress', 'The New York Times', {'weight': 0.0001}),
('Nation In Distress', 'CNN', {'weight': 0.0006}),
('Nation In Distress', 'Hillary Clinton', {'weight': 0.0001}),
('Nation In Distress', 'Sean Hannity', {'weight': 0.0044}),
('Nation In Distress', 'Western Journalism', {'weight': 0.0052}),
('NowThis', 'Allen West', {'weight': 0.0007}),
('NowThis', 'U.S. Senator Bernie Sanders', {'weight': 0.0037}),
('NowThis', 'The Federalist Papers', {'weight': 0.0004}),
('NowThis', '9GAG', {'weight': 0.0037}),
('NowThis', 'Franklin Graham', {'weight': 0.0004}),
('NowThis', 'NPR', {'weight': 0.0027}),
('NowThis', 'American News', {'weight': 0.0008}),
('NowThis', 'ABC News', {'weight': 0.0038}),
('NowThis', 'The Other 98%', {'weight': 0.0051}),
('NowThis', 'Breitbart', {'weight': 0.0008}),
('NowThis', 'BuzzFeed', {'weight': 0.0047}),
('NowThis', 'The Huffington Post', {'weight': 0.0059}),
('NowThis', 'Fox News', {'weight': 0.003}),
('NowThis', 'The Political Insider', {'weight': 0.0006}),
('NowThis', 'The Onion', {'weight': 0.0022}),
('NowThis', 'CNN', {'weight': 0.0042}),
('NowThis', 'The New York Times', {'weight': 0.0029}),
('NowThis', 'Donald J. Trump', {'weight': 0.0024}),
('NowThis', 'Hillary Clinton', {'weight': 0.0034}),
('NowThis', 'Sean Hannity', {'weight': 0.0006}),
('NowThis', 'Western Journalism', {'weight': 0.0006}),
('The Huffington Post', 'Allen West', {'weight': 0.0003}),
('The Huffington Post', 'U.S. Senator Bernie Sanders', {'weight': 0.0108}),
('The Huffington Post', 'The Federalist Papers', {'weight': 0.0002}),
('The Huffington Post', '9GAG', {'weight': 0.0018}),
('The Huffington Post', 'Franklin Graham', {'weight': 0.0003}),
('The Huffington Post', 'NPR', {'weight': 0.0156}),
('The Huffington Post', 'ABC News', {'weight': 0.0078}),
('The Huffington Post', 'American News', {'weight': 0.0003}),
('The Huffington Post', 'The Other 98%', {'weight': 0.0121}),
('The Huffington Post', 'Breitbart', {'weight': 0.0004}),
('The Huffington Post', 'BuzzFeed', {'weight': 0.0123}),
('The Huffington Post', 'Fox News', {'weight': 0.002}),
('The Huffington Post', 'The Political Insider', {'weight': 0.0002}),
('The Huffington Post', 'The Onion', {'weight': 0.0089}),
('The Huffington Post', 'CNN', {'weight': 0.0098}),
('The Huffington Post', 'The New York Times', {'weight': 0.0134}),
('The Huffington Post', 'Donald J. Trump', {'weight': 0.0008}),
('The Huffington Post', 'Hillary Clinton', {'weight': 0.0169}),
('The Huffington Post', 'Sean Hannity', {'weight': 0.0003}),
('The Huffington Post', 'Western Journalism', {'weight': 0.0002}),
('The Political Insider', 'Allen West', {'weight': 0.0074}),
('The Political Insider', 'The Federalist Papers', {'weight': 0.0087}),
('The Political Insider', 'U.S. Senator Bernie Sanders', {'weight': 0.0002}),
('The Political Insider', '9GAG', {'weight': 0.0001}),
('The Political Insider', 'Franklin Graham', {'weight': 0.0067}),
('The Political Insider', 'NPR', {'weight': 0.0001}),
('The Political Insider', 'ABC News', {'weight': 0.0017}),
('The Political Insider', 'American News', {'weight': 0.0155}),
('The Political Insider', 'Breitbart', {'weight': 0.01}),
('The Political Insider', 'The Other 98%', {'weight': 0.0003}),
('The Political Insider', 'BuzzFeed', {'weight': 0.0001}),
('The Political Insider', 'Fox News', {'weight': 0.0151}),
('The Political Insider', 'The Onion', {'weight': 0.0001}),
('The Political Insider', 'Donald J. Trump', {'weight': 0.0122}),
('The Political Insider', 'The New York Times', {'weight': 0.0001}),
('The Political Insider', 'CNN', {'weight': 0.0007}),
('The Political Insider', 'Hillary Clinton', {'weight': 0.0002}),
('The Political Insider', 'Sean Hannity', {'weight': 0.0067}),
('The Political Insider', 'Western Journalism', {'weight': 0.0086}),
('The New York Times', 'Allen West', {'weight': 0.0002}),
('The New York Times', 'U.S. Senator Bernie Sanders', {'weight': 0.0059}),
('The New York Times', 'The Federalist Papers', {'weight': 0.0003}),
('The New York Times', '9GAG', {'weight': 0.0013}),
('The New York Times', 'Franklin Graham', {'weight': 0.0001}),
('The New York Times', 'NPR', {'weight': 0.0125}),
('The New York Times', 'ABC News', {'weight': 0.0038}),
('The New York Times', 'American News', {'weight': 0.0002}),
('The New York Times', 'The Other 98%', {'weight': 0.0061}),
('The New York Times', 'Breitbart', {'weight': 0.0003}),
('The New York Times', 'BuzzFeed', {'weight': 0.0062}),
('The New York Times', 'Fox News', {'weight': 0.0013}),
('The New York Times', 'The Onion', {'weight': 0.0076}),
('The New York Times', 'CNN', {'weight': 0.0062}),
('The New York Times', 'Donald J. Trump', {'weight': 0.0007}),
('The New York Times', 'Hillary Clinton', {'weight': 0.0118}),
('The New York Times', 'Sean Hannity', {'weight': 0.0001}),
('The New York Times', 'Western Journalism', {'weight': 0.0002}),
('Sean Hannity', 'Allen West', {'weight': 0.0134}),
('Sean Hannity', 'The Federalist Papers', {'weight': 0.0074}),
('Sean Hannity', 'U.S. Senator Bernie Sanders', {'weight': 0.0001}),
('Sean Hannity', '9GAG', {'weight': 0.0001}),
('Sean Hannity', 'Franklin Graham', {'weight': 0.0079}),
('Sean Hannity', 'NPR', {'weight': 0.0002}),
('Sean Hannity', 'American News', {'weight': 0.0068}),
('Sean Hannity', 'ABC News', {'weight': 0.0027}),
('Sean Hannity', 'Breitbart', {'weight': 0.0133}),
('Sean Hannity', 'The Other 98%', {'weight': 0.0003}),
('Sean Hannity', 'BuzzFeed', {'weight': 0.0002}),
('Sean Hannity', 'Fox News', {'weight': 0.0246}),
('Sean Hannity', 'The Onion', {'weight': 0.0002}),
('Sean Hannity', 'Donald J. Trump', {'weight': 0.0222}),
('Sean Hannity', 'CNN', {'weight': 0.0013}),
('Sean Hannity', 'Hillary Clinton', {'weight': 0.0}),
('Sean Hannity', 'Western Journalism', {'weight': 0.0072}),
('Western Journalism', 'Allen West', {'weight': 0.0082}),
('Western Journalism', 'The Federalist Papers', {'weight': 0.0082}),
('Western Journalism', 'U.S. Senator Bernie Sanders', {'weight': 0.0001}),
('Western Journalism', '9GAG', {'weight': 0.0}),
('Western Journalism', 'Franklin Graham', {'weight': 0.0068}),
('Western Journalism', 'NPR', {'weight': 0.0002}),
('Western Journalism', 'ABC News', {'weight': 0.0022}),
('Western Journalism', 'American News', {'weight': 0.0103}),
('Western Journalism', 'Breitbart', {'weight': 0.0097}),
('Western Journalism', 'The Other 98%', {'weight': 0.0002}),
('Western Journalism', 'BuzzFeed', {'weight': 0.0001}),
('Western Journalism', 'Fox News', {'weight': 0.0144}),
('Western Journalism', 'The Onion', {'weight': 0.0001}),
('Western Journalism', 'Donald J. Trump', {'weight': 0.0117}),
('Western Journalism', 'CNN', {'weight': 0.0007}),
('Western Journalism', 'Hillary Clinton', {'weight': 0.0001}),
('Allen West', 'The Federalist Papers', {'weight': 0.0115}),
('Allen West', 'U.S. Senator Bernie Sanders', {'weight': 0.0002}),
('Allen West', '9GAG', {'weight': 0.0001}),
('Allen West', 'Franklin Graham', {'weight': 0.0093}),
('Allen West', 'NPR', {'weight': 0.0002}),
('Allen West', 'American News', {'weight': 0.0095}),
('Allen West', 'ABC News', {'weight': 0.0029}),
('Allen West', 'Breitbart', {'weight': 0.0166}),
('Allen West', 'The Other 98%', {'weight': 0.0004}),
('Allen West', 'BuzzFeed', {'weight': 0.0003}),
('Allen West', 'Fox News', {'weight': 0.0271}),
('Allen West', 'The Onion', {'weight': 0.0003}),
('Allen West', 'Donald J. Trump', {'weight': 0.0253}),
('Allen West', 'CNN', {'weight': 0.0012}),
('Allen West', 'Hillary Clinton', {'weight': 0.0}),
('U.S. Senator Bernie Sanders', 'The Federalist Papers', {'weight': 0.0003}),
('U.S. Senator Bernie Sanders', '9GAG', {'weight': 0.0014}),
('U.S. Senator Bernie Sanders', 'Franklin Graham', {'weight': 0.0003}),
('U.S. Senator Bernie Sanders', 'NPR', {'weight': 0.0092}),
('U.S. Senator Bernie Sanders', 'ABC News', {'weight': 0.0034}),
('U.S. Senator Bernie Sanders', 'American News', {'weight': 0.0005}),
('U.S. Senator Bernie Sanders', 'The Other 98%', {'weight': 0.0107}),
('U.S. Senator Bernie Sanders', 'Breitbart', {'weight': 0.0003}),
('U.S. Senator Bernie Sanders', 'BuzzFeed', {'weight': 0.0046}),
('U.S. Senator Bernie Sanders', 'Fox News', {'weight': 0.0011}),
('U.S. Senator Bernie Sanders', 'The Onion', {'weight': 0.0063}),
('U.S. Senator Bernie Sanders', 'CNN', {'weight': 0.0045}),
('U.S. Senator Bernie Sanders', 'Donald J. Trump', {'weight': 0.0008}),
('U.S. Senator Bernie Sanders', 'Hillary Clinton', {'weight': 0.0087}),
('The Federalist Papers', '9GAG', {'weight': 0.0002}),
('The Federalist Papers', 'Franklin Graham', {'weight': 0.007}),
('The Federalist Papers', 'NPR', {'weight': 0.0002}),
('The Federalist Papers', 'American News', {'weight': 0.0103}),
('The Federalist Papers', 'ABC News', {'weight': 0.0016}),
('The Federalist Papers', 'Breitbart', {'weight': 0.0131}),
('The Federalist Papers', 'The Other 98%', {'weight': 0.0004}),
('The Federalist Papers', 'BuzzFeed', {'weight': 0.0001}),
('The Federalist Papers', 'Fox News', {'weight': 0.0158}),
('The Federalist Papers', 'The Onion', {'weight': 0.0003}),
('The Federalist Papers', 'Donald J. Trump', {'weight': 0.0129}),
('The Federalist Papers', 'CNN', {'weight': 0.0007}),
('The Federalist Papers', 'Hillary Clinton', {'weight': 0.0001}),
('9GAG', 'Franklin Graham', {'weight': 0.0001}),
('9GAG', 'NPR', {'weight': 0.0007}),
('9GAG', 'ABC News', {'weight': 0.0009}),
('9GAG', 'American News', {'weight': 0.0001}),
('9GAG', 'The Other 98%', {'weight': 0.0026}),
('9GAG', 'Breitbart', {'weight': 0.0003}),
('9GAG', 'BuzzFeed', {'weight': 0.0031}),
('9GAG', 'Fox News', {'weight': 0.0009}),
('9GAG', 'The Onion', {'weight': 0.0011}),
('9GAG', 'Donald J. Trump', {'weight': 0.0016}),
('9GAG', 'CNN', {'weight': 0.0014}),
('9GAG', 'Hillary Clinton', {'weight': 0.0011}),
('Franklin Graham', 'NPR', {'weight': 0.0002}),
('Franklin Graham', 'American News', {'weight': 0.0095}),
('Franklin Graham', 'ABC News', {'weight': 0.003}),
('Franklin Graham', 'Breitbart', {'weight': 0.0095}),
('Franklin Graham', 'The Other 98%', {'weight': 0.0003}),
('Franklin Graham', 'BuzzFeed', {'weight': 0.0002}),
('Franklin Graham', 'Fox News', {'weight': 0.0219}),
('Franklin Graham', 'The Onion', {'weight': 0.0001}),
('Franklin Graham', 'Donald J. Trump', {'weight': 0.0178}),
('Franklin Graham', 'CNN', {'weight': 0.0009}),
('Franklin Graham', 'Hillary Clinton', {'weight': 0.0003}),
('NPR', 'ABC News', {'weight': 0.0043}),
('NPR', 'American News', {'weight': 0.0002}),
('NPR', 'The Other 98%', {'weight': 0.0077}),
('NPR', 'Breitbart', {'weight': 0.0002}),
('NPR', 'BuzzFeed', {'weight': 0.0068}),
('NPR', 'Fox News', {'weight': 0.001}),
('NPR', 'The Onion', {'weight': 0.0097}),
('NPR', 'CNN', {'weight': 0.0057}),
('NPR', 'Donald J. Trump', {'weight': 0.0005}),
('NPR', 'Hillary Clinton', {'weight': 0.0107}),
('American News', 'ABC News', {'weight': 0.0032}),
('American News', 'Breitbart', {'weight': 0.0111}),
('American News', 'The Other 98%', {'weight': 0.0004}),
('American News', 'BuzzFeed', {'weight': 0.0002}),
('American News', 'Fox News', {'weight': 0.0197}),
('American News', 'The Onion', {'weight': 0.0001}),
('American News', 'Donald J. Trump', {'weight': 0.0152}),
('American News', 'CNN', {'weight': 0.0005}),
('American News', 'Hillary Clinton', {'weight': 0.0003}),
('ABC News', 'Breitbart', {'weight': 0.0032}),
('ABC News', 'The Other 98%', {'weight': 0.004}),
('ABC News', 'BuzzFeed', {'weight': 0.0039}),
('ABC News', 'Fox News', {'weight': 0.0113}),
('ABC News', 'The Onion', {'weight': 0.0025}),
('ABC News', 'Donald J. Trump', {'weight': 0.008}),
('ABC News', 'CNN', {'weight': 0.0069}),
('ABC News', 'Hillary Clinton', {'weight': 0.0064}),
('The Other 98%', 'Breitbart', {'weight': 0.0005}),
('The Other 98%', 'BuzzFeed', {'weight': 0.0065}),
('The Other 98%', 'Fox News', {'weight': 0.0016}),
('The Other 98%', 'The Onion', {'weight': 0.0059}),
('The Other 98%', 'CNN', {'weight': 0.0054}),
('The Other 98%', 'Donald J. Trump', {'weight': 0.0008}),
('The Other 98%', 'Hillary Clinton', {'weight': 0.0081}),
('Breitbart', 'BuzzFeed', {'weight': 0.0002}),
('Breitbart', 'Fox News', {'weight': 0.0263}),
('Breitbart', 'The Onion', {'weight': 0.0004}),
('Breitbart', 'Donald J. Trump', {'weight': 0.0277}),
('Breitbart', 'CNN', {'weight': 0.0015}),
('Breitbart', 'Hillary Clinton', {'weight': 0.0002}),
('BuzzFeed', 'Fox News', {'weight': 0.0015}),
('BuzzFeed', 'The Onion', {'weight': 0.0055}),
('BuzzFeed', 'CNN', {'weight': 0.0051}),
('BuzzFeed', 'Donald J. Trump', {'weight': 0.001}),
('BuzzFeed', 'Hillary Clinton', {'weight': 0.0068}),
('Fox News', 'The Onion', {'weight': 0.0012}),
('Fox News', 'Donald J. Trump', {'weight': 0.0613}),
('Fox News', 'CNN', {'weight': 0.0053}),
('Fox News', 'Hillary Clinton', {'weight': 0.0017}),
('The Onion', 'CNN', {'weight': 0.0037}),
('The Onion', 'Donald J. Trump', {'weight': 0.0008}),
('The Onion', 'Hillary Clinton', {'weight': 0.0064}),
('CNN', 'Donald J. Trump', {'weight': 0.004}),
('CNN', 'Hillary Clinton', {'weight': 0.0104}),
('Donald J. Trump', 'Hillary Clinton', {'weight': 0.0008})]
# Find top x reaction_time Pages
df2_20161009 = df_20161009.groupby(by=['page_id']).sum().groupby(level=[0]).cumsum()
df2_20161009 = df2_20161009.sort_values(by='reaction_time', ascending=False)
df2_20161009 = df2_20161009.drop("user_id", axis='columns')
df2_20161009_add_page_info = df2_20161009.merge(right=page_info, right_on='page_id', left_on='page_id')
df2_20161009_add_page_info = df2_20161009_add_page_info.reset_index()
df2_20161009_add_page_info.head(30)
| index | page_id | reaction_time | page_name | category | type | type_sub | type_issue | fan_count | talking_about_count | page_url | total_like | total_comment | total_share | 1:07:14 | rank_1:7:14 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 0 | 346937065399354 | 49460.0 | Occupy Democrats | Political Organization | group | NaN | NaN | 3900088 | 10721362 | https://www.facebook.com/OccupyDemocrats | 792155 | 74491 | 798849 | 1249747.8 | 3 |
| 1 | 1 | 153080620724 | 42136.0 | Donald J. Trump | Public Figure | figure | politician | NaN | 10801785 | 1722696 | https://www.facebook.com/DonaldTrump | 4463122 | 486152 | 551204 | 1558304.2 | 2 |
| 2 | 2 | 15704546335 | 34740.0 | Fox News | Media/News/Publishing | media | tv | NaN | 13329520 | 3825122 | https://www.facebook.com/FoxNews | 4480553 | 2117810 | 1865659 | 4542444.9 | 1 |
| 3 | 3 | 95475020353 | 18809.0 | Breitbart | Media/News/Publishing | media | website | NaN | 2445780 | 1180481 | https://www.facebook.com/Breitbart | 1132039 | 313784 | 552679 | 1106603.3 | 4 |
| 4 | 4 | 889307941125736 | 15569.0 | Hillary Clinton | Politician | figure | politician | NaN | 6159021 | 2269940 | https://www.facebook.com/hillaryclinton | 2042363 | 461294 | 349858 | 1016943.3 | 5 |
| 5 | 5 | 18468761129 | 13831.0 | The Huffington Post | Media/News/Publishing | media | website | NaN | 8200138 | 2338598 | https://www.facebook.com/HuffingtonPost | 1025157 | 89556 | 412304 | 742430.5 | 8 |
| 6 | 6 | 21785951839 | 13682.0 | 9GAG | App Page | others | NaN | NaN | 32155423 | 11547502 | https://www.facebook.com/9gag | 13909 | 725 | 1555 | 4075.4 | 760 |
| 7 | 7 | 133961323610549 | 13672.0 | Donald Trump For President | Politician | figure | politician | NaN | 1633254 | 1437603 | https://www.facebook.com/DonaldTrump4President | 168286 | 36829 | 75417 | 148192.7 | 67 |
| 8 | 8 | 179035672287016 | 11918.0 | American News | Media/News/Publishing | media | website | NaN | 5368155 | 1672285 | https://www.facebook.com/ThePatriotReview | 538521 | 51804 | 182386 | 345455.3 | 27 |
| 9 | 9 | 114517875225866 | 11575.0 | The Other 98% | Organization | group | NaN | inequality | 3088088 | 5241170 | https://www.facebook.com/TheOther98 | 99948 | 9665 | 134243 | 204700.5 | 50 |
| 10 | 10 | 22067606728 | 11565.0 | Allen West | Public Figure | figure | politician | NaN | 2436623 | 1552544 | https://www.facebook.com/AllenBWest | 17445 | 750 | 7716 | 13071.9 | 403 |
| 11 | 11 | 205344452828349 | 10323.0 | George Takei | Actor/Director | figure | journalist | NaN | 9856263 | 2527229 | https://www.facebook.com/georgehtakei | 10717 | 2273 | 596 | 3497.2 | 822 |
| 12 | 12 | 199098633470668 | 9859.0 | The LAD Bible | Media/News/Publishing | media | website | NaN | 16164893 | 18579204 | https://www.facebook.com/LADbible | 46478 | 9710 | 9196 | 24319.2 | 259 |
| 13 | 13 | 69813760388 | 8909.0 | Sean Hannity | Public Figure | figure | journalist | NaN | 2460455 | 620133 | https://www.facebook.com/SeanHannity | 797223 | 127169 | 311126 | 604317.0 | 11 |
| 14 | 14 | 177486166274 | 8667.0 | Being Liberal | Media/News/Publishing | media | website | NaN | 1499325 | 803868 | https://www.facebook.com/beingliberal.org | 367306 | 34054 | 130558 | 243349.6 | 40 |
| 15 | 15 | 107705785934333 | 8460.0 | The Federalist Papers | Media/News/Publishing | media | website | NaN | 2175186 | 1271961 | https://www.facebook.com/TheFederalistPapers | 329771 | 54575 | 199279 | 350170.2 | 26 |
| 16 | 16 | 354522044588660 | 8153.0 | Upworthy | Media/News/Publishing | media | website | NaN | 10028666 | 3138601 | https://www.facebook.com/Upworthy | 34369 | 1443 | 7292 | 14655.8 | 375 |
| 17 | 17 | 10643211755 | 8126.0 | NPR | Non-Profit Organization | media | radio | NaN | 5132848 | 1151976 | https://www.facebook.com/NPR | 207136 | 45354 | 65668 | 144396.6 | 70 |
| 18 | 18 | 226821494115353 | 8100.0 | Nation In Distress | Media/News/Publishing | media | website | NaN | 1649087 | 3154824 | https://www.facebook.com/NationInDistress | 20822 | 3478 | 7454 | 14952.4 | 370 |
| 19 | 19 | 5550296508 | 7949.0 | CNN | Media/News/Publishing | media | tv | NaN | 23414282 | 3217462 | https://www.facebook.com/cnn | 617880 | 289587 | 160728 | 489518.1 | 16 |
| 20 | 20 | 86680728811 | 7764.0 | ABC News | TV Network | media | tv | NaN | 9108005 | 3453112 | https://www.facebook.com/ABCNews | 399188 | 201179 | 77633 | 289430.3 | 34 |
| 21 | 21 | 112723252096438 | 7636.0 | The Political Insider | News/Media Website | media | website | NaN | 2598529 | 1004533 | https://www.facebook.com/ThePoliticalInsider | 227963 | 33948 | 87747 | 169405.7 | 60 |
| 22 | 22 | 5281959998 | 7260.0 | The New York Times | Media/News/Publishing | media | newspaper | NaN | 11959098 | 1196413 | https://www.facebook.com/nytimes | 529705 | 101940 | 133194 | 310800.1 | 33 |
| 23 | 23 | 21898300328 | 7067.0 | BuzzFeed | Media/News/Publishing | media | website | NaN | 8297094 | 2953846 | https://www.facebook.com/BuzzFeed | 49504 | 9953 | 22182 | 42972.3 | 191 |
| 24 | 24 | 9124187907 | 6608.0 | U.S. Senator Bernie Sanders | Politician | figure | politician | NaN | 4269815 | 1004148 | https://www.facebook.com/senatorsanders | 20139 | 1260 | 11770 | 19373.9 | 310 |
| 25 | 25 | 20950654496 | 6430.0 | The Onion | Media/News/Publishing | media | website | NaN | 5994086 | 779283 | https://www.facebook.com/TheOnion | 114630 | 4919 | 37535 | 67455.3 | 145 |
| 26 | 26 | 169676909894983 | 6393.0 | Uncle Sam's Misguided Children | Website | media | website | NaN | 1228559 | 2798671 | https://www.facebook.com/UncleSamsMisguidedChi... | 8601 | 2853 | 8844 | 15238.8 | 359 |
| 27 | 27 | 131201286936061 | 6227.0 | Franklin Graham | Public Figure | figure | journalist | NaN | 4473335 | 553129 | https://www.facebook.com/FranklinGraham | 107593 | 14532 | 50850 | 92121.7 | 107 |
| 28 | 28 | 123624513983 | 6213.0 | Western Journalism | Media/News/Publishing | media | website | NaN | 4134706 | 488315 | https://www.facebook.com/WesternJournalism | 628094 | 103376 | 395163 | 688400.8 | 9 |
| 29 | 29 | 341163402640457 | 6176.0 | NowThis | News/Media Website | media | website | NaN | 7743317 | 10964723 | https://www.facebook.com/NowThisNews | 147450 | 17401 | 4662 | 33452.5 | 222 |
#2016-10-16
# Load data and clean data
df_20161016 = df.drop(df[df['week_start_date']!='2016-10-16'].index)
df_20161016 = df_20161016.drop("week_start_date", axis='columns')
df_20161016.reset_index(drop=True, inplace=True)
df_20161016_add_page_info = df_20161016.merge(right=page_info, right_on='page_id', left_on='page_id')
## Find top x reaction_time Pages
df2_20161016 = df_20161016_add_page_info.groupby(by=['page_id']).sum().groupby(level=[0]).cumsum()
df2_20161016 = df2_20161016.sort_values(by='reaction_time', ascending=False)
df2_20161016 = df2_20161016.reset_index()
page_id_20161016 = df2_20161016.page_id.tolist()
## only analysis top x pages
df3_20161016_add_page_info = df_20161016_add_page_info[df_20161016_add_page_info.page_id.isin(page_id_20161016[0:30])]
df3_20161016_add_page_info.reset_index(drop=True, inplace=True)
# graph visualization
B_20161016 = nx_graph_from_pandas_edgelist(df3_20161016_add_page_info)
bottom_nodes, top_nodes = bipartite.sets(B_20161016)
# Project users' nodes on pages' node
G_20161016 = bipartite.weighted_projected_graph(B_20161016, list(top_nodes), ratio=True)
for u, v, d in G_20161016.edges(data=True):
d['weight'] = round(d['weight'], 4)
# Calculate average weight
weight_sum = 0
node_sum = 0
average_weight = 0
for u, v, d in G_20161016.edges(data=True):
weight_sum += d['weight']
node_sum += 1
average_weight = weight_sum / node_sum
elarge = [(u, v) for (u, v, d) in G_20161016.edges(data=True) if d["weight"] > average_weight ]
esmall = [(u, v) for (u, v, d) in G_20161016.edges(data=True) if d["weight"] <= average_weight ]
pos = nx.spring_layout(G_20161016, seed=7) # positions for all nodes - seed for reproducibility
# nodes
nx.draw_networkx_nodes(G_20161016, pos, node_size=60)
# edges
nx.draw_networkx_edges(G_20161016, pos, edgelist=elarge, width=2, edge_color="red")
nx.draw_networkx_edges(
G_20161016, pos, edgelist=esmall, width=0.5, alpha=0.5, edge_color="black", style="dashed"
)
# node labels
nx.draw_networkx_labels(G_20161016, pos, font_size=15, font_family="sans-serif")
# edge weight labels
edge_labels = nx.get_edge_attributes(G_20161016, "weight")
#nx.draw_networkx_edge_labels(G_20161016, pos, edge_labels, font_size=6, font_family="sans-serif")
ax = plt.gca()
ax.margins(0.001)
plt.axis("off")
plt.tight_layout()
plt.gcf().subplots_adjust(left=0)
plt.gcf().subplots_adjust(right=2)
plt.gcf().subplots_adjust(top=2)
plt.gcf().subplots_adjust(bottom=0)
plt.show()
for u, v, d in G_20161016.edges(data=True):
d['weight'] = round(d['weight'], 4)
list(G_20161016.edges(data=True))
[('Donald Trump For President', 'Allen West', {'weight': 0.0085}),
('Donald Trump For President', 'The Federalist Papers', {'weight': 0.0077}),
('Donald Trump For President', '9GAG', {'weight': 0.0001}),
('Donald Trump For President', 'The LAD Bible', {'weight': 0.0008}),
('Donald Trump For President', 'AWM America', {'weight': 0.0092}),
('Donald Trump For President',
"Uncle Sam's Misguided Children",
{'weight': 0.0035}),
('Donald Trump For President', 'George Takei', {'weight': 0.0003}),
('Donald Trump For President', 'Bill Maher', {'weight': 0.0001}),
('Donald Trump For President', 'NPR', {'weight': 0.0001}),
('Donald Trump For President', 'American News', {'weight': 0.0111}),
('Donald Trump For President', 'ABC News', {'weight': 0.0017}),
('Donald Trump For President', 'Cold Dead Hands', {'weight': 0.0037}),
('Donald Trump For President', 'Bernie Sanders', {'weight': 0.0001}),
('Donald Trump For President', 'Occupy Democrats', {'weight': 0.0001}),
('Donald Trump For President', 'Breitbart', {'weight': 0.0114}),
('Donald Trump For President', 'The Other 98%', {'weight': 0.0001}),
('Donald Trump For President', 'Nation In Distress', {'weight': 0.0113}),
('Donald Trump For President', 'Upworthy', {'weight': 0.0003}),
('Donald Trump For President', 'NowThis', {'weight': 0.0007}),
('Donald Trump For President', 'BuzzFeed', {'weight': 0.0002}),
('Donald Trump For President', 'The Huffington Post', {'weight': 0.0001}),
('Donald Trump For President', 'Fox News', {'weight': 0.0181}),
('Donald Trump For President', 'The Political Insider', {'weight': 0.0111}),
('Donald Trump For President', 'Donald J. Trump', {'weight': 0.0205}),
('Donald Trump For President', 'The New York Times', {'weight': 0.0001}),
('Donald Trump For President', 'CNN', {'weight': 0.0011}),
('Donald Trump For President', 'Faith Family America', {'weight': 0.0072}),
('Donald Trump For President', 'Hillary Clinton', {'weight': 0.0001}),
('Donald Trump For President', 'Sean Hannity', {'weight': 0.0091}),
('The LAD Bible', 'Allen West', {'weight': 0.0012}),
('The LAD Bible', 'The Federalist Papers', {'weight': 0.0008}),
('The LAD Bible', '9GAG', {'weight': 0.0142}),
('The LAD Bible', 'AWM America', {'weight': 0.0013}),
('The LAD Bible', "Uncle Sam's Misguided Children", {'weight': 0.0013}),
('The LAD Bible', 'George Takei', {'weight': 0.0067}),
('The LAD Bible', 'Bill Maher', {'weight': 0.0015}),
('The LAD Bible', 'NPR', {'weight': 0.0011}),
('The LAD Bible', 'ABC News', {'weight': 0.0031}),
('The LAD Bible', 'American News', {'weight': 0.0007}),
('The LAD Bible', 'Cold Dead Hands', {'weight': 0.0011}),
('The LAD Bible', 'Bernie Sanders', {'weight': 0.0027}),
('The LAD Bible', 'Occupy Democrats', {'weight': 0.0039}),
('The LAD Bible', 'The Other 98%', {'weight': 0.0038}),
('The LAD Bible', 'Breitbart', {'weight': 0.0012}),
('The LAD Bible', 'NowThis', {'weight': 0.0095}),
('The LAD Bible', 'Upworthy', {'weight': 0.0033}),
('The LAD Bible', 'Nation In Distress', {'weight': 0.0007}),
('The LAD Bible', 'BuzzFeed', {'weight': 0.0057}),
('The LAD Bible', 'The Huffington Post', {'weight': 0.0034}),
('The LAD Bible', 'Fox News', {'weight': 0.0034}),
('The LAD Bible', 'The Political Insider', {'weight': 0.0007}),
('The LAD Bible', 'Donald J. Trump', {'weight': 0.0034}),
('The LAD Bible', 'The New York Times', {'weight': 0.0018}),
('The LAD Bible', 'CNN', {'weight': 0.0039}),
('The LAD Bible', 'Faith Family America', {'weight': 0.0005}),
('The LAD Bible', 'Hillary Clinton', {'weight': 0.0033}),
('The LAD Bible', 'Sean Hannity', {'weight': 0.0008}),
("Uncle Sam's Misguided Children", 'Allen West', {'weight': 0.0045}),
("Uncle Sam's Misguided Children",
'The Federalist Papers',
{'weight': 0.0031}),
("Uncle Sam's Misguided Children", '9GAG', {'weight': 0.0004}),
("Uncle Sam's Misguided Children", 'AWM America', {'weight': 0.0021}),
("Uncle Sam's Misguided Children", 'George Takei', {'weight': 0.0002}),
("Uncle Sam's Misguided Children", 'Bill Maher', {'weight': 0.0}),
("Uncle Sam's Misguided Children", 'NPR', {'weight': 0.0001}),
("Uncle Sam's Misguided Children", 'American News', {'weight': 0.0025}),
("Uncle Sam's Misguided Children", 'ABC News', {'weight': 0.001}),
("Uncle Sam's Misguided Children", 'Cold Dead Hands', {'weight': 0.0038}),
("Uncle Sam's Misguided Children", 'Bernie Sanders', {'weight': 0.0001}),
("Uncle Sam's Misguided Children", 'Occupy Democrats', {'weight': 0.0001}),
("Uncle Sam's Misguided Children", 'Breitbart', {'weight': 0.0045}),
("Uncle Sam's Misguided Children", 'The Other 98%', {'weight': 0.0002}),
("Uncle Sam's Misguided Children", 'Nation In Distress', {'weight': 0.0027}),
("Uncle Sam's Misguided Children", 'NowThis', {'weight': 0.0006}),
("Uncle Sam's Misguided Children", 'Upworthy', {'weight': 0.0001}),
("Uncle Sam's Misguided Children", 'BuzzFeed', {'weight': 0.0002}),
("Uncle Sam's Misguided Children", 'The Huffington Post', {'weight': 0.0002}),
("Uncle Sam's Misguided Children", 'Fox News', {'weight': 0.0085}),
("Uncle Sam's Misguided Children",
'The Political Insider',
{'weight': 0.0021}),
("Uncle Sam's Misguided Children", 'Donald J. Trump', {'weight': 0.0084}),
("Uncle Sam's Misguided Children", 'The New York Times', {'weight': 0.0001}),
("Uncle Sam's Misguided Children", 'CNN', {'weight': 0.0006}),
("Uncle Sam's Misguided Children",
'Faith Family America',
{'weight': 0.0012}),
("Uncle Sam's Misguided Children", 'Hillary Clinton', {'weight': 0.0001}),
("Uncle Sam's Misguided Children", 'Sean Hannity', {'weight': 0.0031}),
('George Takei', 'Allen West', {'weight': 0.0005}),
('George Takei', 'The Federalist Papers', {'weight': 0.0004}),
('George Takei', '9GAG', {'weight': 0.0039}),
('George Takei', 'AWM America', {'weight': 0.0015}),
('George Takei', 'Bill Maher', {'weight': 0.0119}),
('George Takei', 'NPR', {'weight': 0.0143}),
('George Takei', 'ABC News', {'weight': 0.0049}),
('George Takei', 'Cold Dead Hands', {'weight': 0.0004}),
('George Takei', 'American News', {'weight': 0.0004}),
('George Takei', 'Bernie Sanders', {'weight': 0.0139}),
('George Takei', 'Occupy Democrats', {'weight': 0.0175}),
('George Takei', 'The Other 98%', {'weight': 0.0128}),
('George Takei', 'Breitbart', {'weight': 0.0006}),
('George Takei', 'NowThis', {'weight': 0.0071}),
('George Takei', 'Upworthy', {'weight': 0.0128}),
('George Takei', 'Nation In Distress', {'weight': 0.0004}),
('George Takei', 'BuzzFeed', {'weight': 0.0132}),
('George Takei', 'The Huffington Post', {'weight': 0.0186}),
('George Takei', 'Fox News', {'weight': 0.0022}),
('George Takei', 'The Political Insider', {'weight': 0.0002}),
('George Takei', 'CNN', {'weight': 0.0099}),
('George Takei', 'The New York Times', {'weight': 0.0128}),
('George Takei', 'Donald J. Trump', {'weight': 0.001}),
('George Takei', 'Faith Family America', {'weight': 0.0004}),
('George Takei', 'Hillary Clinton', {'weight': 0.0179}),
('George Takei', 'Sean Hannity', {'weight': 0.0004}),
('Bill Maher', 'Allen West', {'weight': 0.0001}),
('Bill Maher', 'The Federalist Papers', {'weight': 0.0001}),
('Bill Maher', '9GAG', {'weight': 0.0008}),
('Bill Maher', 'AWM America', {'weight': 0.0006}),
('Bill Maher', 'NPR', {'weight': 0.0071}),
('Bill Maher', 'ABC News', {'weight': 0.0027}),
('Bill Maher', 'Cold Dead Hands', {'weight': 0.0001}),
('Bill Maher', 'American News', {'weight': 0.0001}),
('Bill Maher', 'Bernie Sanders', {'weight': 0.0104}),
('Bill Maher', 'Occupy Democrats', {'weight': 0.0153}),
('Bill Maher', 'The Other 98%', {'weight': 0.0085}),
('Bill Maher', 'Breitbart', {'weight': 0.0002}),
('Bill Maher', 'Upworthy', {'weight': 0.0049}),
('Bill Maher', 'NowThis', {'weight': 0.003}),
('Bill Maher', 'Nation In Distress', {'weight': 0.0001}),
('Bill Maher', 'BuzzFeed', {'weight': 0.005}),
('Bill Maher', 'The Huffington Post', {'weight': 0.0105}),
('Bill Maher', 'Fox News', {'weight': 0.0008}),
('Bill Maher', 'The Political Insider', {'weight': 0.0}),
('Bill Maher', 'CNN', {'weight': 0.007}),
('Bill Maher', 'The New York Times', {'weight': 0.0082}),
('Bill Maher', 'Donald J. Trump', {'weight': 0.0002}),
('Bill Maher', 'Faith Family America', {'weight': 0.0001}),
('Bill Maher', 'Hillary Clinton', {'weight': 0.0143}),
('Occupy Democrats', 'Allen West', {'weight': 0.0001}),
('Occupy Democrats', 'The Federalist Papers', {'weight': 0.0002}),
('Occupy Democrats', '9GAG', {'weight': 0.0019}),
('Occupy Democrats', 'AWM America', {'weight': 0.0027}),
('Occupy Democrats', 'NPR', {'weight': 0.0092}),
('Occupy Democrats', 'ABC News', {'weight': 0.0061}),
('Occupy Democrats', 'Cold Dead Hands', {'weight': 0.0002}),
('Occupy Democrats', 'American News', {'weight': 0.0004}),
('Occupy Democrats', 'Bernie Sanders', {'weight': 0.0146}),
('Occupy Democrats', 'The Other 98%', {'weight': 0.0184}),
('Occupy Democrats', 'Breitbart', {'weight': 0.0004}),
('Occupy Democrats', 'NowThis', {'weight': 0.0071}),
('Occupy Democrats', 'Upworthy', {'weight': 0.01}),
('Occupy Democrats', 'Nation In Distress', {'weight': 0.0003}),
('Occupy Democrats', 'BuzzFeed', {'weight': 0.0073}),
('Occupy Democrats', 'The Huffington Post', {'weight': 0.0162}),
('Occupy Democrats', 'Fox News', {'weight': 0.0019}),
('Occupy Democrats', 'The Political Insider', {'weight': 0.0002}),
('Occupy Democrats', 'CNN', {'weight': 0.0123}),
('Occupy Democrats', 'The New York Times', {'weight': 0.0105}),
('Occupy Democrats', 'Donald J. Trump', {'weight': 0.0004}),
('Occupy Democrats', 'Faith Family America', {'weight': 0.0009}),
('Occupy Democrats', 'Hillary Clinton', {'weight': 0.0249}),
('Occupy Democrats', 'Sean Hannity', {'weight': 0.0001}),
('Upworthy', 'Allen West', {'weight': 0.0005}),
('Upworthy', 'The Federalist Papers', {'weight': 0.0003}),
('Upworthy', '9GAG', {'weight': 0.0015}),
('Upworthy', 'AWM America', {'weight': 0.0016}),
('Upworthy', 'NPR', {'weight': 0.0069}),
('Upworthy', 'ABC News', {'weight': 0.0041}),
('Upworthy', 'American News', {'weight': 0.0006}),
('Upworthy', 'Cold Dead Hands', {'weight': 0.0002}),
('Upworthy', 'Bernie Sanders', {'weight': 0.0067}),
('Upworthy', 'The Other 98%', {'weight': 0.0063}),
('Upworthy', 'Breitbart', {'weight': 0.0005}),
('Upworthy', 'NowThis', {'weight': 0.0064}),
('Upworthy', 'Nation In Distress', {'weight': 0.0003}),
('Upworthy', 'BuzzFeed', {'weight': 0.0069}),
('Upworthy', 'The Huffington Post', {'weight': 0.0103}),
('Upworthy', 'Fox News', {'weight': 0.0021}),
('Upworthy', 'The Political Insider', {'weight': 0.0002}),
('Upworthy', 'CNN', {'weight': 0.0064}),
('Upworthy', 'The New York Times', {'weight': 0.0067}),
('Upworthy', 'Donald J. Trump', {'weight': 0.0012}),
('Upworthy', 'Faith Family America', {'weight': 0.0005}),
('Upworthy', 'Hillary Clinton', {'weight': 0.0087}),
('Upworthy', 'Sean Hannity', {'weight': 0.0003}),
('NowThis', 'Allen West', {'weight': 0.0009}),
('NowThis', 'The Federalist Papers', {'weight': 0.0007}),
('NowThis', '9GAG', {'weight': 0.0042}),
('NowThis', 'AWM America', {'weight': 0.0017}),
('NowThis', 'NPR', {'weight': 0.0028}),
('NowThis', 'ABC News', {'weight': 0.0042}),
('NowThis', 'American News', {'weight': 0.0007}),
('NowThis', 'Cold Dead Hands', {'weight': 0.0004}),
('NowThis', 'Bernie Sanders', {'weight': 0.0052}),
('NowThis', 'The Other 98%', {'weight': 0.0048}),
('NowThis', 'Breitbart', {'weight': 0.0008}),
('NowThis', 'Nation In Distress', {'weight': 0.0006}),
('NowThis', 'BuzzFeed', {'weight': 0.0059}),
('NowThis', 'The Huffington Post', {'weight': 0.0057}),
('NowThis', 'Fox News', {'weight': 0.0033}),
('NowThis', 'The Political Insider', {'weight': 0.0007}),
('NowThis', 'Donald J. Trump', {'weight': 0.0023}),
('NowThis', 'The New York Times', {'weight': 0.0039}),
('NowThis', 'CNN', {'weight': 0.0058}),
('NowThis', 'Faith Family America', {'weight': 0.0006}),
('NowThis', 'Hillary Clinton', {'weight': 0.006}),
('NowThis', 'Sean Hannity', {'weight': 0.0008}),
('Nation In Distress', 'Allen West', {'weight': 0.005}),
('Nation In Distress', 'The Federalist Papers', {'weight': 0.0067}),
('Nation In Distress', '9GAG', {'weight': 0.0001}),
('Nation In Distress', 'AWM America', {'weight': 0.0101}),
('Nation In Distress', 'NPR', {'weight': 0.0001}),
('Nation In Distress', 'American News', {'weight': 0.01}),
('Nation In Distress', 'Cold Dead Hands', {'weight': 0.0035}),
('Nation In Distress', 'ABC News', {'weight': 0.0009}),
('Nation In Distress', 'Bernie Sanders', {'weight': 0.0001}),
('Nation In Distress', 'Breitbart', {'weight': 0.007}),
('Nation In Distress', 'The Other 98%', {'weight': 0.0002}),
('Nation In Distress', 'BuzzFeed', {'weight': 0.0001}),
('Nation In Distress', 'The Huffington Post', {'weight': 0.0001}),
('Nation In Distress', 'Fox News', {'weight': 0.0101}),
('Nation In Distress', 'The Political Insider', {'weight': 0.0101}),
('Nation In Distress', 'Donald J. Trump', {'weight': 0.0088}),
('Nation In Distress', 'The New York Times', {'weight': 0.0001}),
('Nation In Distress', 'CNN', {'weight': 0.0006}),
('Nation In Distress', 'Faith Family America', {'weight': 0.0068}),
('Nation In Distress', 'Hillary Clinton', {'weight': 0.0002}),
('Nation In Distress', 'Sean Hannity', {'weight': 0.0042}),
('The Huffington Post', 'Allen West', {'weight': 0.0003}),
('The Huffington Post', 'The Federalist Papers', {'weight': 0.0003}),
('The Huffington Post', '9GAG', {'weight': 0.0017}),
('The Huffington Post', 'AWM America', {'weight': 0.001}),
('The Huffington Post', 'NPR', {'weight': 0.0129}),
('The Huffington Post', 'ABC News', {'weight': 0.0058}),
('The Huffington Post', 'American News', {'weight': 0.0002}),
('The Huffington Post', 'Cold Dead Hands', {'weight': 0.0001}),
('The Huffington Post', 'Bernie Sanders', {'weight': 0.011}),
('The Huffington Post', 'The Other 98%', {'weight': 0.0101}),
('The Huffington Post', 'Breitbart', {'weight': 0.0002}),
('The Huffington Post', 'BuzzFeed', {'weight': 0.0129}),
('The Huffington Post', 'Fox News', {'weight': 0.0021}),
('The Huffington Post', 'The Political Insider', {'weight': 0.0001}),
('The Huffington Post', 'CNN', {'weight': 0.0126}),
('The Huffington Post', 'The New York Times', {'weight': 0.0143}),
('The Huffington Post', 'Donald J. Trump', {'weight': 0.0006}),
('The Huffington Post', 'Faith Family America', {'weight': 0.0001}),
('The Huffington Post', 'Hillary Clinton', {'weight': 0.0192}),
('The Huffington Post', 'Sean Hannity', {'weight': 0.0002}),
('The Political Insider', 'Allen West', {'weight': 0.0074}),
('The Political Insider', 'The Federalist Papers', {'weight': 0.0086}),
('The Political Insider', '9GAG', {'weight': 0.0001}),
('The Political Insider', 'AWM America', {'weight': 0.0118}),
('The Political Insider', 'NPR', {'weight': 0.0001}),
('The Political Insider', 'Cold Dead Hands', {'weight': 0.0022}),
('The Political Insider', 'ABC News', {'weight': 0.0014}),
('The Political Insider', 'American News', {'weight': 0.0134}),
('The Political Insider', 'Bernie Sanders', {'weight': 0.0001}),
('The Political Insider', 'Breitbart', {'weight': 0.0091}),
('The Political Insider', 'The Other 98%', {'weight': 0.0002}),
('The Political Insider', 'BuzzFeed', {'weight': 0.0001}),
('The Political Insider', 'Fox News', {'weight': 0.0127}),
('The Political Insider', 'Donald J. Trump', {'weight': 0.0112}),
('The Political Insider', 'The New York Times', {'weight': 0.0001}),
('The Political Insider', 'CNN', {'weight': 0.0008}),
('The Political Insider', 'Faith Family America', {'weight': 0.0079}),
('The Political Insider', 'Hillary Clinton', {'weight': 0.0001}),
('The Political Insider', 'Sean Hannity', {'weight': 0.0065}),
('The New York Times', 'Allen West', {'weight': 0.0001}),
('The New York Times', 'The Federalist Papers', {'weight': 0.0001}),
('The New York Times', '9GAG', {'weight': 0.0017}),
('The New York Times', 'AWM America', {'weight': 0.0004}),
('The New York Times', 'NPR', {'weight': 0.0122}),
('The New York Times', 'ABC News', {'weight': 0.0033}),
('The New York Times', 'American News', {'weight': 0.0001}),
('The New York Times', 'Cold Dead Hands', {'weight': 0.0001}),
('The New York Times', 'Bernie Sanders', {'weight': 0.0084}),
('The New York Times', 'The Other 98%', {'weight': 0.0065}),
('The New York Times', 'Breitbart', {'weight': 0.0002}),
('The New York Times', 'BuzzFeed', {'weight': 0.0084}),
('The New York Times', 'Fox News', {'weight': 0.0013}),
('The New York Times', 'CNN', {'weight': 0.0088}),
('The New York Times', 'Donald J. Trump', {'weight': 0.0008}),
('The New York Times', 'Faith Family America', {'weight': 0.0001}),
('The New York Times', 'Hillary Clinton', {'weight': 0.0175}),
('The New York Times', 'Sean Hannity', {'weight': 0.0001}),
('Faith Family America', 'Allen West', {'weight': 0.0052}),
('Faith Family America', 'The Federalist Papers', {'weight': 0.0063}),
('Faith Family America', '9GAG', {'weight': 0.0}),
('Faith Family America', 'AWM America', {'weight': 0.0109}),
('Faith Family America', 'NPR', {'weight': 0.0001}),
('Faith Family America', 'American News', {'weight': 0.0096}),
('Faith Family America', 'Cold Dead Hands', {'weight': 0.0015}),
('Faith Family America', 'ABC News', {'weight': 0.0012}),
('Faith Family America', 'Bernie Sanders', {'weight': 0.0002}),
('Faith Family America', 'Breitbart', {'weight': 0.0067}),
('Faith Family America', 'The Other 98%', {'weight': 0.0003}),
('Faith Family America', 'BuzzFeed', {'weight': 0.0001}),
('Faith Family America', 'Fox News', {'weight': 0.01}),
('Faith Family America', 'Donald J. Trump', {'weight': 0.0077}),
('Faith Family America', 'CNN', {'weight': 0.0005}),
('Faith Family America', 'Hillary Clinton', {'weight': 0.0003}),
('Faith Family America', 'Sean Hannity', {'weight': 0.0043}),
('Sean Hannity', 'Allen West', {'weight': 0.0128}),
('Sean Hannity', 'The Federalist Papers', {'weight': 0.0079}),
('Sean Hannity', '9GAG', {'weight': 0.0002}),
('Sean Hannity', 'AWM America', {'weight': 0.0055}),
('Sean Hannity', 'NPR', {'weight': 0.0002}),
('Sean Hannity', 'American News', {'weight': 0.0073}),
('Sean Hannity', 'Cold Dead Hands', {'weight': 0.0031}),
('Sean Hannity', 'ABC News', {'weight': 0.0022}),
('Sean Hannity', 'Bernie Sanders', {'weight': 0.0001}),
('Sean Hannity', 'Breitbart', {'weight': 0.013}),
('Sean Hannity', 'The Other 98%', {'weight': 0.0002}),
('Sean Hannity', 'BuzzFeed', {'weight': 0.0002}),
('Sean Hannity', 'Fox News', {'weight': 0.0236}),
('Sean Hannity', 'Donald J. Trump', {'weight': 0.0216}),
('Sean Hannity', 'CNN', {'weight': 0.0013}),
('Sean Hannity', 'Hillary Clinton', {'weight': 0.0002}),
('Allen West', 'The Federalist Papers', {'weight': 0.011}),
('Allen West', '9GAG', {'weight': 0.0002}),
('Allen West', 'AWM America', {'weight': 0.0064}),
('Allen West', 'NPR', {'weight': 0.0002}),
('Allen West', 'American News', {'weight': 0.0087}),
('Allen West', 'Cold Dead Hands', {'weight': 0.0042}),
('Allen West', 'ABC News', {'weight': 0.0017}),
('Allen West', 'Bernie Sanders', {'weight': 0.0001}),
('Allen West', 'Breitbart', {'weight': 0.0148}),
('Allen West', 'The Other 98%', {'weight': 0.0002}),
('Allen West', 'BuzzFeed', {'weight': 0.0003}),
('Allen West', 'Fox News', {'weight': 0.022}),
('Allen West', 'Donald J. Trump', {'weight': 0.0187}),
('Allen West', 'CNN', {'weight': 0.0012}),
('Allen West', 'Hillary Clinton', {'weight': 0.0002}),
('The Federalist Papers', '9GAG', {'weight': 0.0002}),
('The Federalist Papers', 'AWM America', {'weight': 0.0085}),
('The Federalist Papers', 'NPR', {'weight': 0.0002}),
('The Federalist Papers', 'Cold Dead Hands', {'weight': 0.0041}),
('The Federalist Papers', 'American News', {'weight': 0.0103}),
('The Federalist Papers', 'ABC News', {'weight': 0.0012}),
('The Federalist Papers', 'Bernie Sanders', {'weight': 0.0}),
('The Federalist Papers', 'Breitbart', {'weight': 0.0129}),
('The Federalist Papers', 'The Other 98%', {'weight': 0.0003}),
('The Federalist Papers', 'BuzzFeed', {'weight': 0.0003}),
('The Federalist Papers', 'Fox News', {'weight': 0.015}),
('The Federalist Papers', 'Donald J. Trump', {'weight': 0.0126}),
('The Federalist Papers', 'CNN', {'weight': 0.0007}),
('The Federalist Papers', 'Hillary Clinton', {'weight': 0.0001}),
('9GAG', 'AWM America', {'weight': 0.0001}),
('9GAG', 'NPR', {'weight': 0.0006}),
('9GAG', 'Cold Dead Hands', {'weight': 0.0002}),
('9GAG', 'ABC News', {'weight': 0.0012}),
('9GAG', 'American News', {'weight': 0.0}),
('9GAG', 'Bernie Sanders', {'weight': 0.0016}),
('9GAG', 'The Other 98%', {'weight': 0.0027}),
('9GAG', 'Breitbart', {'weight': 0.0003}),
('9GAG', 'BuzzFeed', {'weight': 0.0042}),
('9GAG', 'Fox News', {'weight': 0.0008}),
('9GAG', 'CNN', {'weight': 0.0019}),
('9GAG', 'Donald J. Trump', {'weight': 0.0012}),
('9GAG', 'Hillary Clinton', {'weight': 0.0017}),
('AWM America', 'NPR', {'weight': 0.0004}),
('AWM America', 'American News', {'weight': 0.0159}),
('AWM America', 'Cold Dead Hands', {'weight': 0.0023}),
('AWM America', 'ABC News', {'weight': 0.0026}),
('AWM America', 'Bernie Sanders', {'weight': 0.0006}),
('AWM America', 'Breitbart', {'weight': 0.0085}),
('AWM America', 'The Other 98%', {'weight': 0.0008}),
('AWM America', 'BuzzFeed', {'weight': 0.0004}),
('AWM America', 'Fox News', {'weight': 0.0141}),
('AWM America', 'Donald J. Trump', {'weight': 0.0105}),
('AWM America', 'CNN', {'weight': 0.0016}),
('AWM America', 'Hillary Clinton', {'weight': 0.0012}),
('NPR', 'ABC News', {'weight': 0.0027}),
('NPR', 'American News', {'weight': 0.0002}),
('NPR', 'Cold Dead Hands', {'weight': 0.0001}),
('NPR', 'Bernie Sanders', {'weight': 0.0085}),
('NPR', 'The Other 98%', {'weight': 0.0071}),
('NPR', 'Breitbart', {'weight': 0.0003}),
('NPR', 'BuzzFeed', {'weight': 0.0075}),
('NPR', 'Fox News', {'weight': 0.0011}),
('NPR', 'CNN', {'weight': 0.0062}),
('NPR', 'Donald J. Trump', {'weight': 0.0004}),
('NPR', 'Hillary Clinton', {'weight': 0.0129}),
('Cold Dead Hands', 'American News', {'weight': 0.0032}),
('Cold Dead Hands', 'ABC News', {'weight': 0.0005}),
('Cold Dead Hands', 'Bernie Sanders', {'weight': 0.0001}),
('Cold Dead Hands', 'Breitbart', {'weight': 0.0041}),
('Cold Dead Hands', 'The Other 98%', {'weight': 0.0002}),
('Cold Dead Hands', 'BuzzFeed', {'weight': 0.0002}),
('Cold Dead Hands', 'Fox News', {'weight': 0.0075}),
('Cold Dead Hands', 'Donald J. Trump', {'weight': 0.0068}),
('Cold Dead Hands', 'CNN', {'weight': 0.0004}),
('Cold Dead Hands', 'Hillary Clinton', {'weight': 0.0}),
('American News', 'ABC News', {'weight': 0.0016}),
('American News', 'Bernie Sanders', {'weight': 0.0}),
('American News', 'Breitbart', {'weight': 0.0109}),
('American News', 'The Other 98%', {'weight': 0.0001}),
('American News', 'BuzzFeed', {'weight': 0.0001}),
('American News', 'Fox News', {'weight': 0.0169}),
('American News', 'Donald J. Trump', {'weight': 0.0133}),
('American News', 'CNN', {'weight': 0.0007}),
('American News', 'Hillary Clinton', {'weight': 0.0001}),
('ABC News', 'Bernie Sanders', {'weight': 0.0034}),
('ABC News', 'The Other 98%', {'weight': 0.0031}),
('ABC News', 'Breitbart', {'weight': 0.002}),
('ABC News', 'BuzzFeed', {'weight': 0.004}),
('ABC News', 'Fox News', {'weight': 0.0076}),
('ABC News', 'Donald J. Trump', {'weight': 0.0052}),
('ABC News', 'CNN', {'weight': 0.0073}),
('ABC News', 'Hillary Clinton', {'weight': 0.0066}),
('Bernie Sanders', 'The Other 98%', {'weight': 0.0112}),
('Bernie Sanders', 'Breitbart', {'weight': 0.0002}),
('Bernie Sanders', 'BuzzFeed', {'weight': 0.0072}),
('Bernie Sanders', 'Fox News', {'weight': 0.001}),
('Bernie Sanders', 'CNN', {'weight': 0.0065}),
('Bernie Sanders', 'Donald J. Trump', {'weight': 0.0005}),
('Bernie Sanders', 'Hillary Clinton', {'weight': 0.013}),
('Breitbart', 'The Other 98%', {'weight': 0.0004}),
('Breitbart', 'BuzzFeed', {'weight': 0.0005}),
('Breitbart', 'Fox News', {'weight': 0.0231}),
('Breitbart', 'Donald J. Trump', {'weight': 0.0224}),
('Breitbart', 'CNN', {'weight': 0.0016}),
('Breitbart', 'Hillary Clinton', {'weight': 0.0003}),
('The Other 98%', 'BuzzFeed', {'weight': 0.0063}),
('The Other 98%', 'Fox News', {'weight': 0.0015}),
('The Other 98%', 'CNN', {'weight': 0.0068}),
('The Other 98%', 'Donald J. Trump', {'weight': 0.0005}),
('The Other 98%', 'Hillary Clinton', {'weight': 0.0106}),
('BuzzFeed', 'Fox News', {'weight': 0.002}),
('BuzzFeed', 'Donald J. Trump', {'weight': 0.0011}),
('BuzzFeed', 'CNN', {'weight': 0.0073}),
('BuzzFeed', 'Hillary Clinton', {'weight': 0.0102}),
('Fox News', 'Donald J. Trump', {'weight': 0.048}),
('Fox News', 'CNN', {'weight': 0.0064}),
('Fox News', 'Hillary Clinton', {'weight': 0.0022}),
('CNN', 'Donald J. Trump', {'weight': 0.0039}),
('CNN', 'Hillary Clinton', {'weight': 0.015}),
('Donald J. Trump', 'Hillary Clinton', {'weight': 0.0009})]
# Find top x reaction_time Pages
df2_20161016 = df_20161016.groupby(by=['page_id']).sum().groupby(level=[0]).cumsum()
df2_20161016 = df2_20161016.sort_values(by='reaction_time', ascending=False)
df2_20161016 = df2_20161016.drop("user_id", axis='columns')
df2_20161016_add_page_info = df2_20161016.merge(right=page_info, right_on='page_id', left_on='page_id')
df2_20161016_add_page_info = df2_20161016_add_page_info.reset_index()
df2_20161016_add_page_info.head(30)
| index | page_id | reaction_time | page_name | category | type | type_sub | type_issue | fan_count | talking_about_count | page_url | total_like | total_comment | total_share | 1:07:14 | rank_1:7:14 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 0 | 153080620724 | 32051.0 | Donald J. Trump | Public Figure | figure | politician | NaN | 10801785 | 1722696 | https://www.facebook.com/DonaldTrump | 4463122 | 486152 | 551204 | 1558304.2 | 2 |
| 1 | 1 | 346937065399354 | 30202.0 | Occupy Democrats | Political Organization | group | NaN | NaN | 3900088 | 10721362 | https://www.facebook.com/OccupyDemocrats | 792155 | 74491 | 798849 | 1249747.8 | 3 |
| 2 | 2 | 15704546335 | 28509.0 | Fox News | Media/News/Publishing | media | tv | NaN | 13329520 | 3825122 | https://www.facebook.com/FoxNews | 4480553 | 2117810 | 1865659 | 4542444.9 | 1 |
| 3 | 3 | 95475020353 | 17025.0 | Breitbart | Media/News/Publishing | media | website | NaN | 2445780 | 1180481 | https://www.facebook.com/Breitbart | 1132039 | 313784 | 552679 | 1106603.3 | 4 |
| 4 | 4 | 889307941125736 | 16012.0 | Hillary Clinton | Politician | figure | politician | NaN | 6159021 | 2269940 | https://www.facebook.com/hillaryclinton | 2042363 | 461294 | 349858 | 1016943.3 | 5 |
| 5 | 5 | 21785951839 | 15136.0 | 9GAG | App Page | others | NaN | NaN | 32155423 | 11547502 | https://www.facebook.com/9gag | 13909 | 725 | 1555 | 4075.4 | 760 |
| 6 | 6 | 133961323610549 | 14286.0 | Donald Trump For President | Politician | figure | politician | NaN | 1633254 | 1437603 | https://www.facebook.com/DonaldTrump4President | 168286 | 36829 | 75417 | 148192.7 | 67 |
| 7 | 7 | 199098633470668 | 12449.0 | The LAD Bible | Media/News/Publishing | media | website | NaN | 16164893 | 18579204 | https://www.facebook.com/LADbible | 46478 | 9710 | 9196 | 24319.2 | 259 |
| 8 | 8 | 205344452828349 | 12253.0 | George Takei | Actor/Director | figure | journalist | NaN | 9856263 | 2527229 | https://www.facebook.com/georgehtakei | 10717 | 2273 | 596 | 3497.2 | 822 |
| 9 | 9 | 18468761129 | 12221.0 | The Huffington Post | Media/News/Publishing | media | website | NaN | 8200138 | 2338598 | https://www.facebook.com/HuffingtonPost | 1025157 | 89556 | 412304 | 742430.5 | 8 |
| 10 | 10 | 226821494115353 | 10188.0 | Nation In Distress | Media/News/Publishing | media | website | NaN | 1649087 | 3154824 | https://www.facebook.com/NationInDistress | 20822 | 3478 | 7454 | 14952.4 | 370 |
| 11 | 11 | 22067606728 | 9878.0 | Allen West | Public Figure | figure | politician | NaN | 2436623 | 1552544 | https://www.facebook.com/AllenBWest | 17445 | 750 | 7716 | 13071.9 | 403 |
| 12 | 12 | 5550296508 | 9550.0 | CNN | Media/News/Publishing | media | tv | NaN | 23414282 | 3217462 | https://www.facebook.com/cnn | 617880 | 289587 | 160728 | 489518.1 | 16 |
| 13 | 13 | 114517875225866 | 9366.0 | The Other 98% | Organization | group | NaN | inequality | 3088088 | 5241170 | https://www.facebook.com/TheOther98 | 99948 | 9665 | 134243 | 204700.5 | 50 |
| 14 | 14 | 21898300328 | 8868.0 | BuzzFeed | Media/News/Publishing | media | website | NaN | 8297094 | 2953846 | https://www.facebook.com/BuzzFeed | 49504 | 9953 | 22182 | 42972.3 | 191 |
| 15 | 15 | 107705785934333 | 8517.0 | The Federalist Papers | Media/News/Publishing | media | website | NaN | 2175186 | 1271961 | https://www.facebook.com/TheFederalistPapers | 329771 | 54575 | 199279 | 350170.2 | 26 |
| 16 | 16 | 179035672287016 | 8455.0 | American News | Media/News/Publishing | media | website | NaN | 5368155 | 1672285 | https://www.facebook.com/ThePatriotReview | 538521 | 51804 | 182386 | 345455.3 | 27 |
| 17 | 17 | 69813760388 | 8356.0 | Sean Hannity | Public Figure | figure | journalist | NaN | 2460455 | 620133 | https://www.facebook.com/SeanHannity | 797223 | 127169 | 311126 | 604317.0 | 11 |
| 18 | 18 | 5281959998 | 7934.0 | The New York Times | Media/News/Publishing | media | newspaper | NaN | 11959098 | 1196413 | https://www.facebook.com/nytimes | 529705 | 101940 | 133194 | 310800.1 | 33 |
| 19 | 19 | 62507427296 | 7864.0 | Bill Maher | Public Figure | figure | journalist | NaN | 3476448 | 332816 | https://www.facebook.com/Maher | 97132 | 23140 | 9755 | 39568.2 | 208 |
| 20 | 20 | 112723252096438 | 7299.0 | The Political Insider | News/Media Website | media | website | NaN | 2598529 | 1004533 | https://www.facebook.com/ThePoliticalInsider | 227963 | 33948 | 87747 | 169405.7 | 60 |
| 21 | 21 | 124955570892789 | 7028.0 | Bernie Sanders | Politician | figure | politician | NaN | 4455949 | 195603 | https://www.facebook.com/berniesanders | 173403 | 24948 | 41328 | 92663.1 | 105 |
| 22 | 22 | 10643211755 | 6816.0 | NPR | Non-Profit Organization | media | radio | NaN | 5132848 | 1151976 | https://www.facebook.com/NPR | 207136 | 45354 | 65668 | 144396.6 | 70 |
| 23 | 23 | 169676909894983 | 6765.0 | Uncle Sam's Misguided Children | Website | media | website | NaN | 1228559 | 2798671 | https://www.facebook.com/UncleSamsMisguidedChi... | 8601 | 2853 | 8844 | 15238.8 | 359 |
| 24 | 24 | 339226922847416 | 6668.0 | AWM America | News/Media Website | media | website | NaN | 6161533 | 1876242 | https://www.facebook.com/AWMAmerica | 19351 | 5165 | 4352 | 11643.4 | 434 |
| 25 | 25 | 86680728811 | 6150.0 | ABC News | TV Network | media | tv | NaN | 9108005 | 3453112 | https://www.facebook.com/ABCNews | 399188 | 201179 | 77633 | 289430.3 | 34 |
| 26 | 26 | 341163402640457 | 6110.0 | NowThis | News/Media Website | media | website | NaN | 7743317 | 10964723 | https://www.facebook.com/NowThisNews | 147450 | 17401 | 4662 | 33452.5 | 222 |
| 27 | 27 | 354522044588660 | 6004.0 | Upworthy | Media/News/Publishing | media | website | NaN | 10028666 | 3138601 | https://www.facebook.com/Upworthy | 34369 | 1443 | 7292 | 14655.8 | 375 |
| 28 | 28 | 307188559330028 | 5399.0 | Cold Dead Hands | Education Website | group | NaN | gun | 1376872 | 1685718 | https://www.facebook.com/colddeadhands | 45486 | 6654 | 34783 | 57902.6 | 161 |
| 29 | 29 | 184859785026060 | 5359.0 | Faith Family America | Media/News/Publishing | media | website | NaN | 3537582 | 1312529 | https://www.facebook.com/faithfamilyamerica | 53742 | 15053 | 29102 | 56654.1 | 163 |